summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/zoomparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <joye@Bills-MacBook-Pro.local>2018-03-02 16:56:39 (GMT)
committerWilliam Joye <joye@Bills-MacBook-Pro.local>2018-03-02 16:56:39 (GMT)
commit07ca462f509e1942ec22c5e6d19545bf4016dd59 (patch)
treebbd451ece9305e04d2fe47e316207859d6bc2eaa /ds9/parsers/zoomparser.tac
parent07cf1e5791cffed572704ae288458c1a3eb90459 (diff)
downloadblt-07ca462f509e1942ec22c5e6d19545bf4016dd59.zip
blt-07ca462f509e1942ec22c5e6d19545bf4016dd59.tar.gz
blt-07ca462f509e1942ec22c5e6d19545bf4016dd59.tar.bz2
add ds9 parsers
Diffstat (limited to 'ds9/parsers/zoomparser.tac')
-rw-r--r--ds9/parsers/zoomparser.tac8
1 files changed, 3 insertions, 5 deletions
diff --git a/ds9/parsers/zoomparser.tac b/ds9/parsers/zoomparser.tac
index 4dcc856..4a342c6 100644
--- a/ds9/parsers/zoomparser.tac
+++ b/ds9/parsers/zoomparser.tac
@@ -7,8 +7,6 @@
%start command
-%token CMD_
-
%token CLOSE_
%token IN_
%token FIT_
@@ -19,7 +17,7 @@
%%
command : zoom
- | zoom {zoom::yyclearin; YYACCEPT} CMD_
+ | zoom {zoom::yyclearin; YYACCEPT} STRING_
;
numeric : INT_ {set _ $1}
@@ -36,8 +34,8 @@ zoom : numeric {Zoom $1 $1}
;
zoomTo: FIT_ {ZoomToFit}
- | numeric {global zoom; set current(zoom) "$1 $1"; ChangeZoom}
- | numeric numeric {global zoom; set current(zoom) "$1 $2"; ChangeZoom}
+ | numeric {ZoomTo $1 $1}
+ | numeric numeric {ZoomTo $1 $2}
;
%%