summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/cropparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-08 17:45:01 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-08 17:45:01 (GMT)
commitfecfcf5f0ddf53b21a1f264fc71873fbe4ec4192 (patch)
treecfef6c4f24996ebbbca7f39d87338aa59bae4b8c /ds9/parsers/cropparser.tac
parent3cf328254182c428cd2902c42c6c37d13b711dab (diff)
downloadblt-fecfcf5f0ddf53b21a1f264fc71873fbe4ec4192.zip
blt-fecfcf5f0ddf53b21a1f264fc71873fbe4ec4192.tar.gz
blt-fecfcf5f0ddf53b21a1f264fc71873fbe4ec4192.tar.bz2
update ds9 parsers
Diffstat (limited to 'ds9/parsers/cropparser.tac')
-rw-r--r--ds9/parsers/cropparser.tac14
1 files changed, 12 insertions, 2 deletions
diff --git a/ds9/parsers/cropparser.tac b/ds9/parsers/cropparser.tac
index 96e8707..ba959bc 100644
--- a/ds9/parsers/cropparser.tac
+++ b/ds9/parsers/cropparser.tac
@@ -1,7 +1,6 @@
%{
%}
-#include matchlock.tin
#include coordsys.tin
#include wcssys.tin
#include skyframe.tin
@@ -14,12 +13,14 @@
%token 3D_
%token CLOSE_
+%token LOCK_
+%token MATCH_
+%token NONE_
%token OPEN_
%token RESET_
%%
-#include matchlock.trl
#include coordsys.trl
#include wcssys.trl
#include skyframe.trl
@@ -61,6 +62,15 @@ crop : OPEN_ {CropDialog}
| numeric numeric wcssys {ProcessCmdCurrent frame "crop 3d $1 $2 $3"}
;
+lock : coordsys {set _ $1}
+ | wcssys {set _ $1}
+ | NONE_ {set _ none}
+ ;
+
+match : coordsys {set _ $1}
+ | wcssys {set _ $1}
+ ;
+
%%
proc crop::yyerror {msg} {