summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/cropparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-05-07 21:29:45 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-05-07 21:29:45 (GMT)
commitbb8810b301d47e195e83923dd87d4b76b5b3882a (patch)
tree086bb5468daa635e827f0a385354999c48029289 /ds9/parsers/cropparser.tac
parenta69ff077638728f9650222acf7b688776610b8ec (diff)
downloadblt-bb8810b301d47e195e83923dd87d4b76b5b3882a.zip
blt-bb8810b301d47e195e83923dd87d4b76b5b3882a.tar.gz
blt-bb8810b301d47e195e83923dd87d4b76b5b3882a.tar.bz2
update ds9 parsers
Diffstat (limited to 'ds9/parsers/cropparser.tac')
-rw-r--r--ds9/parsers/cropparser.tac10
1 files changed, 3 insertions, 7 deletions
diff --git a/ds9/parsers/cropparser.tac b/ds9/parsers/cropparser.tac
index 001c11d..7d44496 100644
--- a/ds9/parsers/cropparser.tac
+++ b/ds9/parsers/cropparser.tac
@@ -1,6 +1,7 @@
%{
%}
+#include matchlock.tin
#include coords.tin
#include numeric.tin
#include string.tin
@@ -9,13 +10,12 @@
%token 3D_
%token CLOSE_
-%token LOCK_
-%token MATCH_
%token OPEN_
%token RESET_
%%
+#include matchlock.trl
#include coords.trl
#include numeric.trl
@@ -26,7 +26,7 @@ command : crop
crop : OPEN_ {CropDialog}
| CLOSE_ {CropDestroyDialog}
| MATCH_ match {MatchCropCurrent $2}
- | LOCK_ coordnone {CropCmdSet lock $2 LockCropCurrent}
+ | LOCK_ lock {CropCmdSet lock $2 LockCropCurrent}
| RESET_ {CropReset}
| 3D_ 3d
@@ -49,10 +49,6 @@ crop : OPEN_ {CropDialog}
| SEXSTR_ SEXSTR_ numeric numeric wcssys skyframe rformat {global current; $current(frame) crop center $1 $2 $5 $6 $3 $4 $5 $7}
;
-match : coordsys {set _ $1}
- | wcssys {set _ $1}
- ;
-
3d : numeric numeric {global current; $current(frame) crop 3d $1 $2 image}
| numeric numeric coordsys {global current; $current(frame) crop 3d $1 $2 $3}
| numeric numeric wcssys {global current; $current(frame) crop 3d $1 $2 $3}