summaryrefslogtreecommitdiffstats
path: root/ds9/parsers
diff options
context:
space:
mode:
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}
;