diff options
Diffstat (limited to 'ds9/parsers/alignparser.tac')
-rw-r--r-- | ds9/parsers/alignparser.tac | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ds9/parsers/alignparser.tac b/ds9/parsers/alignparser.tac new file mode 100644 index 0000000..dcc85dd --- /dev/null +++ b/ds9/parsers/alignparser.tac @@ -0,0 +1,29 @@ +%{ +%} + +#include yesno.tin +#include string.tin + +%start command + +%% + +#include yesno.trl + +command : align + | align {yyclearin; YYACCEPT} STRING_ + ; + + +align : yesno {CurrentCmdSet align $1} + ; + +%% + +proc align::yyerror {msg} { + variable yycnt + variable yy_current_buffer + variable index_ + + ParserError $msg $yycnt $yy_current_buffer $index_ +} |