summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/prefssendparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-11 16:45:42 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-11 16:45:42 (GMT)
commitd233cb16ebbd17b7b0279a369554531709e1e9e5 (patch)
treebb11d67d77e5976eec672e63a32cfc1dfdba8e5e /ds9/parsers/prefssendparser.tac
parent9a7fedd488a60e755afeffc1fa60c560f2492446 (diff)
downloadblt-d233cb16ebbd17b7b0279a369554531709e1e9e5.zip
blt-d233cb16ebbd17b7b0279a369554531709e1e9e5.tar.gz
blt-d233cb16ebbd17b7b0279a369554531709e1e9e5.tar.bz2
add ds9 prefs send parser
Diffstat (limited to 'ds9/parsers/prefssendparser.tac')
-rw-r--r--ds9/parsers/prefssendparser.tac29
1 files changed, 29 insertions, 0 deletions
diff --git a/ds9/parsers/prefssendparser.tac b/ds9/parsers/prefssendparser.tac
new file mode 100644
index 0000000..5c5c761
--- /dev/null
+++ b/ds9/parsers/prefssendparser.tac
@@ -0,0 +1,29 @@
+%{
+%}
+
+%start prefssend
+
+%token BGCOLOR_
+%token IRAFALIGN_
+%token NANCOLOR_
+%token PRECISION_
+%token THREADS_
+
+%%
+
+prefssend : PRECISION_ {ProcessSendCmdGet6 pds9 prec,linear prec,deg prec,hms prec,dms prec,arcmin prec,arcsec}
+ | BGCOLOR_ {ProcessSendCmdGet pds9 bg}
+ | NANCOLOR_ {ProcessSendCmdGet pds9 nan}
+ | THREADS_ {ProcessSendCmdGet ds9 threads}
+ | IRAFALIGN_ {ProcessSendCmdYesNo pds9 iraf}
+ ;
+
+%%
+
+proc prefssend::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}