diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-06-11 16:45:42 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-06-11 16:45:42 (GMT) |
commit | d233cb16ebbd17b7b0279a369554531709e1e9e5 (patch) | |
tree | bb11d67d77e5976eec672e63a32cfc1dfdba8e5e /ds9/parsers | |
parent | 9a7fedd488a60e755afeffc1fa60c560f2492446 (diff) | |
download | blt-d233cb16ebbd17b7b0279a369554531709e1e9e5.zip blt-d233cb16ebbd17b7b0279a369554531709e1e9e5.tar.gz blt-d233cb16ebbd17b7b0279a369554531709e1e9e5.tar.bz2 |
add ds9 prefs send parser
Diffstat (limited to 'ds9/parsers')
-rw-r--r-- | ds9/parsers/prefssendlex.fcl | 18 | ||||
-rw-r--r-- | ds9/parsers/prefssendparser.tac | 29 |
2 files changed, 47 insertions, 0 deletions
diff --git a/ds9/parsers/prefssendlex.fcl b/ds9/parsers/prefssendlex.fcl new file mode 100644 index 0000000..aa1554a --- /dev/null +++ b/ds9/parsers/prefssendlex.fcl @@ -0,0 +1,18 @@ +#tab prefssendparser.tab.tcl + +%{ +%} + +#include defs.fin + +%% + +bgcolor {return $BGCOLOR_} +irafalign {return $IRAFALIGN_} +nancolor {return $NANCOLOR_} +precision {return $PRECISION_} +threads {return $THREADS_} + +#include ws.fin + +%% 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_ +} |