summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/pansendparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-05 19:03:23 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-05 19:03:23 (GMT)
commit3379de35277197a1e5b31e508a68dcf523afebac (patch)
treee450bd62a6c791d1d6052d3d8e0e84c6dbcb577f /ds9/parsers/pansendparser.tac
parent44b1f9f425e4c7708ad086ff066c3cd92eed5af8 (diff)
downloadblt-3379de35277197a1e5b31e508a68dcf523afebac.zip
blt-3379de35277197a1e5b31e508a68dcf523afebac.tar.gz
blt-3379de35277197a1e5b31e508a68dcf523afebac.tar.bz2
add ds9 pan send parser
Diffstat (limited to 'ds9/parsers/pansendparser.tac')
-rw-r--r--ds9/parsers/pansendparser.tac31
1 files changed, 31 insertions, 0 deletions
diff --git a/ds9/parsers/pansendparser.tac b/ds9/parsers/pansendparser.tac
new file mode 100644
index 0000000..d9d4481
--- /dev/null
+++ b/ds9/parsers/pansendparser.tac
@@ -0,0 +1,31 @@
+%{
+%}
+
+#include coords.tin
+#include string.tin
+
+%start pansend
+
+%%
+
+#include coords.trl
+
+pansend : {ProcessSendCmdCurrent "get cursor image fk5 degrees"}
+ | coordsys {ProcessSendCmdCurrent "get cursor $1 fk5 degrees"}
+ | wcssys {ProcessSendCmdCurrent "get cursor $1 fk5 degrees"}
+ | skyframe {ProcessSendCmdCurrent "get cursor wcs $1 degrees"}
+ | wcssys skyframe {ProcessSendCmdCurrent "get cursor $1 $2 degrees"}
+ | wcssys skyformat {ProcessSendCmdCurrent "get cursor $1 fk5 $2"}
+ | skyframe skyformat {ProcessSendCmdCurrent "get cursor wcs $1 $2"}
+ | wcssys skyframe skyformat {ProcessSendCmdCurrent "get cursor $1 $2 $3"}
+ ;
+
+%%
+
+proc pansend::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}