diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-06-18 19:16:39 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-06-18 19:16:39 (GMT) |
commit | 5f4cbb5973a88ddd0124660108f220bf297b69ba (patch) | |
tree | 030017201b449998a1db6ea56bedbc08606b1a5e /ds9/parsers | |
parent | f503c9ee3374f07764864b5db1f8dc6eab10f43a (diff) | |
download | blt-5f4cbb5973a88ddd0124660108f220bf297b69ba.zip blt-5f4cbb5973a88ddd0124660108f220bf297b69ba.tar.gz blt-5f4cbb5973a88ddd0124660108f220bf297b69ba.tar.bz2 |
add ds9 iis send parser
Diffstat (limited to 'ds9/parsers')
-rw-r--r-- | ds9/parsers/iissendlex.fcl | 15 | ||||
-rw-r--r-- | ds9/parsers/iissendparser.tac | 26 |
2 files changed, 41 insertions, 0 deletions
diff --git a/ds9/parsers/iissendlex.fcl b/ds9/parsers/iissendlex.fcl new file mode 100644 index 0000000..fa00383 --- /dev/null +++ b/ds9/parsers/iissendlex.fcl @@ -0,0 +1,15 @@ +#tab iissendparser.tab.tcl + +%{ +%} + +#include defs.fin + +%% + +filename {return $FILENAME_} + +#include int.fin +#include ws.fin + +%% diff --git a/ds9/parsers/iissendparser.tac b/ds9/parsers/iissendparser.tac new file mode 100644 index 0000000..524c90d --- /dev/null +++ b/ds9/parsers/iissendparser.tac @@ -0,0 +1,26 @@ +%{ +%} + +#include int.tin + +%start iissend + +%token FILENAME_ + +%% + +iissend : {ProcessSendCmdCurrent frame "get iis file name 1"} + | INT_ {ProcessSendCmdCurrent frame "get iis file name $1"} + | FILENAME_ {ProcessSendCmdCurrent frame "get iis file name 1"} + | FILENAME_ INT_ {ProcessSendCmdCurrent frame "get iis file name $2"} + ; + +%% + +proc iissend::yyerror {msg} { + variable yycnt + variable yy_current_buffer + variable index_ + + ParserError $msg $yycnt $yy_current_buffer $index_ +} |