diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-05-08 18:23:59 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-05-08 18:23:59 (GMT) |
commit | f5bce74eabb0a4389fc885baf0b15a1a89655b86 (patch) | |
tree | 26bf556a75ea7f08fe76323b0500803d4de3f389 /ds9/parsers | |
parent | 86654caa76c90695a985bb5f0dbbcc683411354e (diff) | |
download | blt-f5bce74eabb0a4389fc885baf0b15a1a89655b86.zip blt-f5bce74eabb0a4389fc885baf0b15a1a89655b86.tar.gz blt-f5bce74eabb0a4389fc885baf0b15a1a89655b86.tar.bz2 |
add ds9 iconify parser
Diffstat (limited to 'ds9/parsers')
-rw-r--r-- | ds9/parsers/iconifylex.fcl | 14 | ||||
-rw-r--r-- | ds9/parsers/iconifyparser.tac | 30 |
2 files changed, 44 insertions, 0 deletions
diff --git a/ds9/parsers/iconifylex.fcl b/ds9/parsers/iconifylex.fcl new file mode 100644 index 0000000..564a6cd --- /dev/null +++ b/ds9/parsers/iconifylex.fcl @@ -0,0 +1,14 @@ +#tab iconifyparser.tab.tcl + +%{ +%} + +#include defs.fin + +%% + +#include yesno.fin +#include numeric.fin +#include string.fin + +%% diff --git a/ds9/parsers/iconifyparser.tac b/ds9/parsers/iconifyparser.tac new file mode 100644 index 0000000..4a88369 --- /dev/null +++ b/ds9/parsers/iconifyparser.tac @@ -0,0 +1,30 @@ +%{ +%} + +#include yesno.tin +#include numeric.tin +#include string.tin + +%start command + +%% + +#include yesno.trl +#include numeric.trl + +command : iconify + | iconify {yyclearin; YYACCEPT} STRING_ + ; + +iconify : yesno {IconifyCmd $1} + ; + +%% + +proc iconify::yyerror {msg} { + variable yycnt + variable yy_current_buffer + variable index_ + + ParserError $msg $yycnt $yy_current_buffer $index_ +} |