summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/alignparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-04-12 18:04:40 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-04-12 18:04:40 (GMT)
commite00937f30333bcd4a5375e4f75a23d4b75aa648d (patch)
tree5f4e914c4e666356ffa0af600151d8cc4030cc79 /ds9/parsers/alignparser.tac
parent4ae99e055b8b3f55884206154283adfdae60ba3a (diff)
downloadblt-e00937f30333bcd4a5375e4f75a23d4b75aa648d.zip
blt-e00937f30333bcd4a5375e4f75a23d4b75aa648d.tar.gz
blt-e00937f30333bcd4a5375e4f75a23d4b75aa648d.tar.bz2
add ds9 align parser
Diffstat (limited to 'ds9/parsers/alignparser.tac')
-rw-r--r--ds9/parsers/alignparser.tac29
1 files changed, 29 insertions, 0 deletions
diff --git a/ds9/parsers/alignparser.tac b/ds9/parsers/alignparser.tac
new file mode 100644
index 0000000..dcc85dd
--- /dev/null
+++ b/ds9/parsers/alignparser.tac
@@ -0,0 +1,29 @@
+%{
+%}
+
+#include yesno.tin
+#include string.tin
+
+%start command
+
+%%
+
+#include yesno.trl
+
+command : align
+ | align {yyclearin; YYACCEPT} STRING_
+ ;
+
+
+align : yesno {CurrentCmdSet align $1}
+ ;
+
+%%
+
+proc align::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}