diff --git a/cameo/README b/cameo/README index a953f43..638f33c 100644 --- a/cameo/README +++ b/cameo/README @@ -77,4 +77,4 @@ Vertical adjustment: Tool compensation: - tool + tool [dog] diff --git a/cameo/lang.l b/cameo/lang.l index 479d109..0a1b665 100644 --- a/cameo/lang.l +++ b/cameo/lang.l @@ -55,6 +55,8 @@ NUM [0-9]+\.?[0-9]* write { BEGIN(FILENAME); return TOK_WRITE; } +dog return TOK_DOG; + mm metric = 1; mil metric = 0; diff --git a/cameo/lang.y b/cameo/lang.y index 8e3cdfa..ca834e5 100644 --- a/cameo/lang.y +++ b/cameo/lang.y @@ -15,6 +15,7 @@ #include #include "path.h" +#include "ops.h" #include "gnuplot.h" #include "gerber.h" @@ -115,6 +116,7 @@ static void align(int ref, double x, double y) %token TOK_ALIGN TOK_ARRAY TOK_CLEAR TOK_RESET TOK_TOOL %token TOK_TRANSLATE TOK_Z %token TOK_GERBER TOK_GNUPLOT TOK_WRITE +%token TOK_DOG %token NUMBER %token STRING @@ -163,7 +165,11 @@ command: } | TOK_TOOL { - // @@@ process_paths(paths); + tool_comp_paths(paths, 0); + } + | TOK_TOOL TOK_DOG + { + tool_comp_paths(paths, 1); } | TOK_TRANSLATE NUMBER NUMBER {