summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/iisparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/iisparser.tac')
-rw-r--r--ds9/parsers/iisparser.tac31
1 files changed, 31 insertions, 0 deletions
diff --git a/ds9/parsers/iisparser.tac b/ds9/parsers/iisparser.tac
new file mode 100644
index 0000000..e486cbb
--- /dev/null
+++ b/ds9/parsers/iisparser.tac
@@ -0,0 +1,31 @@
+%{
+%}
+
+#include numeric.tin
+#include string.tin
+
+%start command
+
+%token FILENAME_
+
+%%
+
+#include numeric.trl
+
+command : iis
+ | iis {yyclearin; YYACCEPT} STRING_
+ ;
+
+iis : FILENAME_ STRING_ {IISCmd $2}
+ | FILENAME_ STRING_ INT_ {IISCmd $2 $3}
+ ;
+
+%%
+
+proc iis::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}