summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/mosaicimageirafparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-05-10 21:16:35 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-05-10 21:16:35 (GMT)
commitabebccd43ae4ebf24ef336ef5c1c2bf18a03becc (patch)
treecd4004d366ba172de5de980b65eb2cf3fdd05cf0 /ds9/parsers/mosaicimageirafparser.tac
parent14ce7d934c7c9b22d6718052a32e371d0d845f82 (diff)
downloadblt-abebccd43ae4ebf24ef336ef5c1c2bf18a03becc.zip
blt-abebccd43ae4ebf24ef336ef5c1c2bf18a03becc.tar.gz
blt-abebccd43ae4ebf24ef336ef5c1c2bf18a03becc.tar.bz2
add ds9 mosaicimageiraf parser
Diffstat (limited to 'ds9/parsers/mosaicimageirafparser.tac')
-rw-r--r--ds9/parsers/mosaicimageirafparser.tac34
1 files changed, 34 insertions, 0 deletions
diff --git a/ds9/parsers/mosaicimageirafparser.tac b/ds9/parsers/mosaicimageirafparser.tac
new file mode 100644
index 0000000..819c260
--- /dev/null
+++ b/ds9/parsers/mosaicimageirafparser.tac
@@ -0,0 +1,34 @@
+%{
+%}
+
+#include string.tin
+
+%start command
+
+%token MASK_
+%token NEW_
+
+%%
+
+command : mosaicimageiraf
+ | mosaicimageiraf {yyclearin; YYACCEPT} STRING_
+ ;
+
+mosaicimageiraf : opts {MosaicImageIRAFCmdLoad {} $1}
+ | opts STRING_ {MosaicImageIRAFCmdLoad $2 $1}
+ ;
+
+opts :
+ | NEW_ {CreateFrame; set _ {}}
+ | MASK_ {set _ mask}
+ ;
+
+%%
+
+proc mosaicimageiraf::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}