summaryrefslogtreecommitdiffstats
path: root/ds9/parsers
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-10-23 21:24:50 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-10-23 21:24:50 (GMT)
commit70fa1e5c66e30bb297476febd2c4abd4eaa1f7ea (patch)
tree35e1a99060e1eb67edf8ba583efc772e035ec3ee /ds9/parsers
parente16bc82bbc836c23638abafd2a88b756343c29ae (diff)
downloadblt-70fa1e5c66e30bb297476febd2c4abd4eaa1f7ea.zip
blt-70fa1e5c66e30bb297476febd2c4abd4eaa1f7ea.tar.gz
blt-70fa1e5c66e30bb297476febd2c4abd4eaa1f7ea.tar.bz2
new mask
Diffstat (limited to 'ds9/parsers')
-rw-r--r--ds9/parsers/maskparser.tac10
-rw-r--r--ds9/parsers/masksendparser.tac2
2 files changed, 12 insertions, 0 deletions
diff --git a/ds9/parsers/maskparser.tac b/ds9/parsers/maskparser.tac
index 4759e50..55596cb 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
@@ -12,10 +14,13 @@
%token COLOR_
%token MARK_
%token OPEN_
+%token SYSTEM_
%token TRANSPARENCY_
%%
+#include coordsys.trl
+#include wcssys.trl
#include numeric.trl
command : mask
@@ -28,9 +33,14 @@ mask : {global parse; set parse(result) mask}
| CLEAR_ {MaskClear}
| COLOR_ STRING_ {ProcessCmdSet mask color $2 MaskColor}
| MARK_ INT_ {ProcessCmdSet mask mark $2 MaskMark}
+ | SYSTEM_ system
| TRANSPARENCY_ numeric {ProcessCmdSet mask transparency $2 MaskTransparency}
;
+system : coordsys {ProcessCmdSet mask system $1 MaskSystem}
+ | wcssys {ProcessCmdSet mask system $1 MaskSystem}
+ ;
+
%%
proc mask::yyerror {msg} {
diff --git a/ds9/parsers/masksendparser.tac b/ds9/parsers/masksendparser.tac
index bfb4f8a..9fdb15d 100644
--- a/ds9/parsers/masksendparser.tac
+++ b/ds9/parsers/masksendparser.tac
@@ -6,12 +6,14 @@
%token COLOR_
%token MARK_
+%token SYSTEM_
%token TRANSPARENCY_
%%
masksend : COLOR_ {ProcessSendCmdGet mask color}
| MARK_ {ProcessSendCmdGet mask mark}
+ | SYSTEM_ {ProcessSendCmdGet mask system}
| TRANSPARENCY_ {ProcessSendCmdGet mask transparency}
;