summaryrefslogtreecommitdiffstats
path: root/ds9/parsers
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-11-09 19:56:18 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-11-09 19:56:18 (GMT)
commit1772cc3748f183d207660c21b164f9385853844d (patch)
treed698526b66f0f558ea1153600497546f47488d09 /ds9/parsers
parent230ef6d812fc698695a7742f1ddce1d437f31fb4 (diff)
downloadblt-1772cc3748f183d207660c21b164f9385853844d.zip
blt-1772cc3748f183d207660c21b164f9385853844d.tar.gz
blt-1772cc3748f183d207660c21b164f9385853844d.tar.bz2
add mask nan
Diffstat (limited to 'ds9/parsers')
-rw-r--r--ds9/parsers/masklex.fcl2
-rw-r--r--ds9/parsers/maskparser.tac4
2 files changed, 6 insertions, 0 deletions
diff --git a/ds9/parsers/masklex.fcl b/ds9/parsers/masklex.fcl
index cafe4b6..22817ef 100644
--- a/ds9/parsers/masklex.fcl
+++ b/ds9/parsers/masklex.fcl
@@ -11,6 +11,8 @@ close {return $CLOSE_}
clear {return $CLEAR_}
color {return $COLOR_}
mark {return $MARK_}
+nan {return $NAN_}
+nonnan {return $NONNAN_}
nonzero {return $NONZERO_}
open {return $OPEN_}
range {return $RANGE_}
diff --git a/ds9/parsers/maskparser.tac b/ds9/parsers/maskparser.tac
index df578d4..3c777a7 100644
--- a/ds9/parsers/maskparser.tac
+++ b/ds9/parsers/maskparser.tac
@@ -13,6 +13,8 @@
%token CLOSE_
%token COLOR_
%token MARK_
+%token NAN_
+%token NONNAN_
%token NONZERO_
%token OPEN_
%token RANGE_
@@ -45,6 +47,8 @@ mask : {global parse; set parse(result) mask}
mark : ZERO_ {set _ zero}
| NONZERO_ {set _ nonzero}
+ | NAN_ {set _ nan}
+ | NONNAN_ {set _ nonnan}
| RANGE_ {set _ range}
;