summaryrefslogtreecommitdiffstats
path: root/ds9/parsers
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers')
-rw-r--r--ds9/parsers/panlex.fcl2
-rw-r--r--ds9/parsers/zoomlex.fcl5
-rw-r--r--ds9/parsers/zoomparser.tac4
3 files changed, 10 insertions, 1 deletions
diff --git a/ds9/parsers/panlex.fcl b/ds9/parsers/panlex.fcl
index 18c5115..7d4ec06 100644
--- a/ds9/parsers/panlex.fcl
+++ b/ds9/parsers/panlex.fcl
@@ -15,6 +15,8 @@ E [Ee][+-]?{D}+
%%
+-pan {return $pan::CMD_}
+-rotate {return $pan::CMD_}
-zscale {return $pan::CMD_}
-zoom {return $pan::CMD_}
diff --git a/ds9/parsers/zoomlex.fcl b/ds9/parsers/zoomlex.fcl
index 79ff034..0c2637f 100644
--- a/ds9/parsers/zoomlex.fcl
+++ b/ds9/parsers/zoomlex.fcl
@@ -15,6 +15,11 @@ E [Ee][+-]?{D}+
%%
+-pan {return $zoom::CMD_}
+-rotate {return $zoom::CMD_}
+-zscale {return $zoom::CMD_}
+-zoom {return $zoom::CMD_}
+
close {return $zoom::CLOSE_}
in {return $zoom::IN_}
fit {return $zoom::FIT_}
diff --git a/ds9/parsers/zoomparser.tac b/ds9/parsers/zoomparser.tac
index a49b838..4dcc856 100644
--- a/ds9/parsers/zoomparser.tac
+++ b/ds9/parsers/zoomparser.tac
@@ -7,6 +7,8 @@
%start command
+%token CMD_
+
%token CLOSE_
%token IN_
%token FIT_
@@ -17,7 +19,7 @@
%%
command : zoom
- | zoom {zoom::yyclearin; YYACCEPT} STRING_
+ | zoom {zoom::yyclearin; YYACCEPT} CMD_
;
numeric : INT_ {set _ $1}