summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/pixeltableparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-04-18 21:11:38 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-04-18 21:11:38 (GMT)
commitcad0dec7552dc91e8990a597d478695ea664c4ab (patch)
tree07bab8fa46e2e795c451554a3cb1e8c4192dff82 /ds9/parsers/pixeltableparser.tac
parentb7da8b6d6135adc2779c60b0e346e6440599caa2 (diff)
downloadblt-cad0dec7552dc91e8990a597d478695ea664c4ab.zip
blt-cad0dec7552dc91e8990a597d478695ea664c4ab.tar.gz
blt-cad0dec7552dc91e8990a597d478695ea664c4ab.tar.bz2
add ds9 pixeltable parser
Diffstat (limited to 'ds9/parsers/pixeltableparser.tac')
-rw-r--r--ds9/parsers/pixeltableparser.tac34
1 files changed, 34 insertions, 0 deletions
diff --git a/ds9/parsers/pixeltableparser.tac b/ds9/parsers/pixeltableparser.tac
new file mode 100644
index 0000000..43b2375
--- /dev/null
+++ b/ds9/parsers/pixeltableparser.tac
@@ -0,0 +1,34 @@
+%{
+%}
+
+#include yesno.tin
+#include string.tin
+
+%start command
+
+%token CLOSE_
+%token OPEN_
+
+%%
+
+#include yesno.trl
+
+command : pixeltable
+ | pixeltable {yyclearin; YYACCEPT} STRING_
+ ;
+
+pixeltable : {PixelTableDialog}
+ | OPEN_ {PixelTableDialog}
+ | CLOSE_ {PixelTableDestroyDialog}
+ | yesno
+ ;
+
+%%
+
+proc pixeltable::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}