diff options
Diffstat (limited to 'ds9/parsers/maskparser.tac')
-rw-r--r-- | ds9/parsers/maskparser.tac | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/ds9/parsers/maskparser.tac b/ds9/parsers/maskparser.tac index 4759e50..3c777a7 100644 --- a/ds9/parsers/maskparser.tac +++ b/ds9/parsers/maskparser.tac @@ -2,6 +2,8 @@ %} #include def.tin +#include coordsys.tin +#include wcssys.tin #include numeric.tin #include string.tin @@ -11,11 +13,19 @@ %token CLOSE_ %token COLOR_ %token MARK_ +%token NAN_ +%token NONNAN_ +%token NONZERO_ %token OPEN_ +%token RANGE_ +%token SYSTEM_ %token TRANSPARENCY_ +%token ZERO_ %% +#include coordsys.trl +#include wcssys.trl #include numeric.trl command : mask @@ -23,12 +33,27 @@ command : mask ; mask : {global parse; set parse(result) mask} - | OPEN_ {MaskDialog} + | OPEN_ | CLOSE_ {MaskDestroyDialog} | CLEAR_ {MaskClear} | COLOR_ STRING_ {ProcessCmdSet mask color $2 MaskColor} - | MARK_ INT_ {ProcessCmdSet mask mark $2 MaskMark} + | MARK_ mark {ProcessCmdSet mask mark $2 MaskMark} + | RANGE_ numeric numeric {ProcessCmdSet2 mask low $2 high $3 MaskRange} + | SYSTEM_ system | TRANSPARENCY_ numeric {ProcessCmdSet mask transparency $2 MaskTransparency} +# backward compatibility + | MARK_ INT_ {ProcessCmdSet mask mark $2 MaskMark} + ; + +mark : ZERO_ {set _ zero} + | NONZERO_ {set _ nonzero} + | NAN_ {set _ nan} + | NONNAN_ {set _ nonnan} + | RANGE_ {set _ range} + ; + +system : coordsys {ProcessCmdSet mask system $1 MaskSystem} + | wcssys {ProcessCmdSet mask system $1 MaskSystem} ; %% |