diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-05-11 19:28:43 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-05-11 19:28:43 (GMT) |
commit | da712e58d02b1e0cb0edf2da3a7b9a01190093b4 (patch) | |
tree | afd6bdd1e2f1c1196aafcf33b934de0e4c753716 /ds9/parsers/smosaicwcsparser.tac | |
parent | 94f297496394bcec6e7a9ba0fb9a16471ae266b1 (diff) | |
download | blt-da712e58d02b1e0cb0edf2da3a7b9a01190093b4.zip blt-da712e58d02b1e0cb0edf2da3a7b9a01190093b4.tar.gz blt-da712e58d02b1e0cb0edf2da3a7b9a01190093b4.tar.bz2 |
add ds9 smosaicwcs parser
Diffstat (limited to 'ds9/parsers/smosaicwcsparser.tac')
-rw-r--r-- | ds9/parsers/smosaicwcsparser.tac | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ds9/parsers/smosaicwcsparser.tac b/ds9/parsers/smosaicwcsparser.tac new file mode 100644 index 0000000..e75864c --- /dev/null +++ b/ds9/parsers/smosaicwcsparser.tac @@ -0,0 +1,40 @@ +%{ +%} + +#include coords.tin +#include string.tin + +%start command + +%token MASK_ +%token NEW_ + +%% + +#include coords.trl + +command : smosaicwcs + | smosaicwcs {yyclearin; YYACCEPT} STRING_ + ; + +smosaicwcs : opts sys STRING_ STRING_ {LoadSMosaicWCSFile $3 $4 $2 $1} + ; + +sys : {set _ wcs} + | wcssys {set _ $1} + ; + +opts : + | NEW_ {CreateFrame; set _ {}} + | MASK_ {set _ mask} + ; + +%% + +proc smosaicwcs::yyerror {msg} { + variable yycnt + variable yy_current_buffer + variable index_ + + ParserError $msg $yycnt $yy_current_buffer $index_ +} |