diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-05-10 16:38:20 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-05-10 16:38:20 (GMT) |
commit | 583f23d32829ac3d0c605747f3c08b686ed49c66 (patch) | |
tree | df9e202d10c25c7a67f97433a90f49bf946e5e85 /ds9/parsers/rgbcubeparser.tac | |
parent | 862a4a9a3489bc2f064416e8d567c4e7d5c8fd62 (diff) | |
download | blt-583f23d32829ac3d0c605747f3c08b686ed49c66.zip blt-583f23d32829ac3d0c605747f3c08b686ed49c66.tar.gz blt-583f23d32829ac3d0c605747f3c08b686ed49c66.tar.bz2 |
add ds9 rgbcube parser
Diffstat (limited to 'ds9/parsers/rgbcubeparser.tac')
-rw-r--r-- | ds9/parsers/rgbcubeparser.tac | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ds9/parsers/rgbcubeparser.tac b/ds9/parsers/rgbcubeparser.tac new file mode 100644 index 0000000..61142c5 --- /dev/null +++ b/ds9/parsers/rgbcubeparser.tac @@ -0,0 +1,32 @@ +%{ +%} + +#include string.tin + +%start command + +%token NEW_ + +%% + +command : rgbcube + | rgbcube {yyclearin; YYACCEPT} STRING_ + ; + +rgbcube : opts {RGBCubeCmdLoad {}} + | opts STRING_ {RGBCubeCmdLoad $2} + ; + +opts : + | NEW_ {CreateRGBFrame} + ; + +%% + +proc rgbcube::yyerror {msg} { + variable yycnt + variable yy_current_buffer + variable index_ + + ParserError $msg $yycnt $yy_current_buffer $index_ +} |