summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/rgbarrayparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-05-10 18:35:53 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-05-10 18:35:53 (GMT)
commit92ad0b6f98fafe51cf6fbb4ff4a082cc87d8ee3c (patch)
treed70b3c644cf9703e275f855237ca0284d85372f2 /ds9/parsers/rgbarrayparser.tac
parentaf4920d1c5c55b2be51b8f76f6f1ef168003f8d2 (diff)
downloadblt-92ad0b6f98fafe51cf6fbb4ff4a082cc87d8ee3c.zip
blt-92ad0b6f98fafe51cf6fbb4ff4a082cc87d8ee3c.tar.gz
blt-92ad0b6f98fafe51cf6fbb4ff4a082cc87d8ee3c.tar.bz2
add ds9 srgbcube parser
Diffstat (limited to 'ds9/parsers/rgbarrayparser.tac')
-rw-r--r--ds9/parsers/rgbarrayparser.tac12
1 files changed, 7 insertions, 5 deletions
diff --git a/ds9/parsers/rgbarrayparser.tac b/ds9/parsers/rgbarrayparser.tac
index 61142c5..b69a283 100644
--- a/ds9/parsers/rgbarrayparser.tac
+++ b/ds9/parsers/rgbarrayparser.tac
@@ -5,25 +5,27 @@
%start command
+%token MASK_
%token NEW_
%%
-command : rgbcube
- | rgbcube {yyclearin; YYACCEPT} STRING_
+command : rgbarray
+ | rgbarray {yyclearin; YYACCEPT} STRING_
;
-rgbcube : opts {RGBCubeCmdLoad {}}
- | opts STRING_ {RGBCubeCmdLoad $2}
+rgbarray : opts {RGBArrayCmdLoad {}}
+ | opts STRING_ {RGBArrayCmdLoad $2}
;
opts :
| NEW_ {CreateRGBFrame}
+ | MASK_ {RGBArrayCmdSet load,layer mask}
;
%%
-proc rgbcube::yyerror {msg} {
+proc rgbarray::yyerror {msg} {
variable yycnt
variable yy_current_buffer
variable index_