summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/iissendparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-18 19:16:39 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-18 19:16:39 (GMT)
commit5f4cbb5973a88ddd0124660108f220bf297b69ba (patch)
tree030017201b449998a1db6ea56bedbc08606b1a5e /ds9/parsers/iissendparser.tac
parentf503c9ee3374f07764864b5db1f8dc6eab10f43a (diff)
downloadblt-5f4cbb5973a88ddd0124660108f220bf297b69ba.zip
blt-5f4cbb5973a88ddd0124660108f220bf297b69ba.tar.gz
blt-5f4cbb5973a88ddd0124660108f220bf297b69ba.tar.bz2
add ds9 iis send parser
Diffstat (limited to 'ds9/parsers/iissendparser.tac')
-rw-r--r--ds9/parsers/iissendparser.tac26
1 files changed, 26 insertions, 0 deletions
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_
+}