summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/multiframeparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-05-10 15:48:04 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-05-10 15:48:04 (GMT)
commit862a4a9a3489bc2f064416e8d567c4e7d5c8fd62 (patch)
treed36d35cc31af5279aa173c46d486217413d3bffc /ds9/parsers/multiframeparser.tac
parente12f63777bc5cfd80313c62f706c8dd595af005a (diff)
downloadblt-862a4a9a3489bc2f064416e8d567c4e7d5c8fd62.zip
blt-862a4a9a3489bc2f064416e8d567c4e7d5c8fd62.tar.gz
blt-862a4a9a3489bc2f064416e8d567c4e7d5c8fd62.tar.bz2
add ds9 multiframe parser
Diffstat (limited to 'ds9/parsers/multiframeparser.tac')
-rw-r--r--ds9/parsers/multiframeparser.tac26
1 files changed, 26 insertions, 0 deletions
diff --git a/ds9/parsers/multiframeparser.tac b/ds9/parsers/multiframeparser.tac
new file mode 100644
index 0000000..52c972f
--- /dev/null
+++ b/ds9/parsers/multiframeparser.tac
@@ -0,0 +1,26 @@
+%{
+%}
+
+#include string.tin
+
+%start command
+
+%%
+
+command : multiframe
+ | multiframe {yyclearin; YYACCEPT} STRING_
+ ;
+
+multiframe : {MultiframeCmdLoad {}}
+ | STRING_ {MultiframeCmdLoad $1}
+ ;
+
+%%
+
+proc multiframe::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}