diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-05-10 15:48:04 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-05-10 15:48:04 (GMT) |
commit | 862a4a9a3489bc2f064416e8d567c4e7d5c8fd62 (patch) | |
tree | d36d35cc31af5279aa173c46d486217413d3bffc /ds9/parsers/multiframeparser.tac | |
parent | e12f63777bc5cfd80313c62f706c8dd595af005a (diff) | |
download | blt-862a4a9a3489bc2f064416e8d567c4e7d5c8fd62.zip blt-862a4a9a3489bc2f064416e8d567c4e7d5c8fd62.tar.gz blt-862a4a9a3489bc2f064416e8d567c4e7d5c8fd62.tar.bz2 |
add ds9 multiframe parser
Diffstat (limited to 'ds9/parsers/multiframeparser.tac')
-rw-r--r-- | ds9/parsers/multiframeparser.tac | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ds9/parsers/multiframeparser.tac b/ds9/parsers/multiframeparser.tac new file mode 100644 index 0000000..52c972f --- /dev/null +++ b/ds9/parsers/multiframeparser.tac @@ -0,0 +1,26 @@ +%{ +%} + +#include string.tin + +%start command + +%% + +command : multiframe + | multiframe {yyclearin; YYACCEPT} STRING_ + ; + +multiframe : {MultiframeCmdLoad {}} + | STRING_ {MultiframeCmdLoad $1} + ; + +%% + +proc multiframe::yyerror {msg} { + variable yycnt + variable yy_current_buffer + variable index_ + + ParserError $msg $yycnt $yy_current_buffer $index_ +} |