summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/alignparser.tac
diff options
context:
space:
mode:
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_
+}