mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2025-04-21 12:27:27 +03:00
cameo: call tool compensation from script
- README, lang.l, lang.y: added option "dog" to "tool" command - lang.y: call tool_comp_paths
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#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 <num> NUMBER
|
||||
%token <str> 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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user