summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/maskparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-11-07 22:09:29 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-11-07 22:09:29 (GMT)
commit31e0d69941f31e61e5c242cef79e0bd916fe4ace (patch)
tree1321c597d5f796d02b6226207ecc2d72ac5b4610 /ds9/parsers/maskparser.tac
parentd81a364b0f8e7e847dae9274ee89fe6cdcffaa0e (diff)
downloadblt-31e0d69941f31e61e5c242cef79e0bd916fe4ace.zip
blt-31e0d69941f31e61e5c242cef79e0bd916fe4ace.tar.gz
blt-31e0d69941f31e61e5c242cef79e0bd916fe4ace.tar.bz2
add mask range
Diffstat (limited to 'ds9/parsers/maskparser.tac')
-rw-r--r--ds9/parsers/maskparser.tac9
1 files changed, 9 insertions, 0 deletions
diff --git a/ds9/parsers/maskparser.tac b/ds9/parsers/maskparser.tac
index 6462738..8831f46 100644
--- a/ds9/parsers/maskparser.tac
+++ b/ds9/parsers/maskparser.tac
@@ -13,9 +13,12 @@
%token CLOSE_
%token COLOR_
%token MARK_
+%token NONZERO_
%token OPEN_
+%token RANGE_
%token SYSTEM_
%token TRANSPARENCY_
+%token ZERO_
%%
@@ -33,10 +36,16 @@ mask : {global parse; set parse(result) mask}
| CLEAR_ {MaskClear}
| COLOR_ STRING_ {ProcessCmdSet mask color $2 MaskColor}
| MARK_ INT_ {ProcessCmdSet mask mark $2 MaskMark}
+ | MARK_ mark {ProcessCmdSet mask mark $2 MaskMark}
| SYSTEM_ system
| TRANSPARENCY_ numeric {ProcessCmdSet mask transparency $2 MaskTransparency}
;
+mark : ZERO_ {set _ zero}
+ | NONZERO_ {set _ nonzero}
+ | RANGE_ {set _ range}
+ ;
+
system : coordsys {ProcessCmdSet mask system $1 MaskSystem}
| wcssys {ProcessCmdSet mask system $1 MaskSystem}
;