mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 05:31:10 +02: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:
parent
2bf4559f3f
commit
86c27dbe7c
@ -77,4 +77,4 @@ Vertical adjustment:
|
|||||||
|
|
||||||
Tool compensation:
|
Tool compensation:
|
||||||
|
|
||||||
tool
|
tool [dog]
|
||||||
|
@ -55,6 +55,8 @@ NUM [0-9]+\.?[0-9]*
|
|||||||
<INITIAL>write { BEGIN(FILENAME);
|
<INITIAL>write { BEGIN(FILENAME);
|
||||||
return TOK_WRITE; }
|
return TOK_WRITE; }
|
||||||
|
|
||||||
|
<INITIAL>dog return TOK_DOG;
|
||||||
|
|
||||||
<INITIAL>mm metric = 1;
|
<INITIAL>mm metric = 1;
|
||||||
<INITIAL>mil metric = 0;
|
<INITIAL>mil metric = 0;
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
|
#include "ops.h"
|
||||||
#include "gnuplot.h"
|
#include "gnuplot.h"
|
||||||
#include "gerber.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_ALIGN TOK_ARRAY TOK_CLEAR TOK_RESET TOK_TOOL
|
||||||
%token TOK_TRANSLATE TOK_Z
|
%token TOK_TRANSLATE TOK_Z
|
||||||
%token TOK_GERBER TOK_GNUPLOT TOK_WRITE
|
%token TOK_GERBER TOK_GNUPLOT TOK_WRITE
|
||||||
|
%token TOK_DOG
|
||||||
|
|
||||||
%token <num> NUMBER
|
%token <num> NUMBER
|
||||||
%token <str> STRING
|
%token <str> STRING
|
||||||
@ -163,7 +165,11 @@ command:
|
|||||||
}
|
}
|
||||||
| TOK_TOOL
|
| TOK_TOOL
|
||||||
{
|
{
|
||||||
// @@@ process_paths(paths);
|
tool_comp_paths(paths, 0);
|
||||||
|
}
|
||||||
|
| TOK_TOOL TOK_DOG
|
||||||
|
{
|
||||||
|
tool_comp_paths(paths, 1);
|
||||||
}
|
}
|
||||||
| TOK_TRANSLATE NUMBER NUMBER
|
| TOK_TRANSLATE NUMBER NUMBER
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user