diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-03-03 22:52:28 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-03-03 22:52:28 (GMT) |
commit | e7b4d65a7d83358bf1647547112e4b48b830ea76 (patch) | |
tree | be1e99a034db5bd35c8b815d86ba1ce1bd8dcd79 /ds9/parsers/zoomparser.tac | |
parent | 1d6ba2b117bdf94a16402ae8e380c6dd9e10ef51 (diff) | |
download | blt-e7b4d65a7d83358bf1647547112e4b48b830ea76.zip blt-e7b4d65a7d83358bf1647547112e4b48b830ea76.tar.gz blt-e7b4d65a7d83358bf1647547112e4b48b830ea76.tar.bz2 |
simplify ds9 parsers
Diffstat (limited to 'ds9/parsers/zoomparser.tac')
-rw-r--r-- | ds9/parsers/zoomparser.tac | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ds9/parsers/zoomparser.tac b/ds9/parsers/zoomparser.tac index 1e2969e..71c738d 100644 --- a/ds9/parsers/zoomparser.tac +++ b/ds9/parsers/zoomparser.tac @@ -1,9 +1,7 @@ %{ %} -%token INT_ -%token REAL_ -%token STRING_ +#include base.tin %start command @@ -16,14 +14,12 @@ %% +#include base.trl + command : zoom | zoom {yyclearin; YYACCEPT} STRING_ ; -numeric : INT_ {set _ $1} - | REAL_ {set _ $1} - ; - zoom : OPEN_ {PanZoomDialog} | CLOSE_ {PanZoomDestroyDialog} | IN_ {Zoom 2 2} |