summaryrefslogtreecommitdiffstats
path: root/ds9/parsers
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-06 15:43:08 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-06 15:43:08 (GMT)
commit2a954e3b3b7fa383a1f4ccd3c0f97118097a1e19 (patch)
tree4d9bd36567d82a3a95846ddc562a6af2f027eeef /ds9/parsers
parenta03f2552f6d9f20d602fc82b139d46fb059c85db (diff)
downloadblt-2a954e3b3b7fa383a1f4ccd3c0f97118097a1e19.zip
blt-2a954e3b3b7fa383a1f4ccd3c0f97118097a1e19.tar.gz
blt-2a954e3b3b7fa383a1f4ccd3c0f97118097a1e19.tar.bz2
add ds9 dsssao send parser
Diffstat (limited to 'ds9/parsers')
-rw-r--r--ds9/parsers/dsssaosendlex.fcl13
-rw-r--r--ds9/parsers/dsssaosendparser.tac28
2 files changed, 41 insertions, 0 deletions
diff --git a/ds9/parsers/dsssaosendlex.fcl b/ds9/parsers/dsssaosendlex.fcl
new file mode 100644
index 0000000..5569902
--- /dev/null
+++ b/ds9/parsers/dsssaosendlex.fcl
@@ -0,0 +1,13 @@
+#tab dsssaosendparser.tab.tcl
+
+%{
+%}
+
+#include defs.fin
+
+%%
+
+#include imgsvr.fin
+#include string.fin
+
+%%
diff --git a/ds9/parsers/dsssaosendparser.tac b/ds9/parsers/dsssaosendparser.tac
new file mode 100644
index 0000000..10eb6a6
--- /dev/null
+++ b/ds9/parsers/dsssaosendparser.tac
@@ -0,0 +1,28 @@
+%{
+%}
+
+#include imgsvr.tin
+#include string.tin
+
+%start dsssaosend
+
+%%
+
+dsssaosend : {ProcessSendCmdGet dsao name}
+ | NAME_ {ProcessSendCmdGet dsao name}
+ | SAVE_ {ProcessSendCmdYesNo dsao save}
+ | FRAME_ {ProcessSendCmdGet dsao mode}
+ | SURVEY_ {ProcessSendCmdGet dsao survey}
+ | SIZE_ {ProcessSendCmdGet3 dsao width height rformat}
+ | COORD_ {ProcessSendCmdGet3 dsao x y skyformat}
+ ;
+
+%%
+
+proc dsssaosend::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}