diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-02-27 16:36:10 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-02-27 16:36:10 (GMT) |
commit | 8aa4c8d87e045c9edeff9f8969535d97ca88db91 (patch) | |
tree | c03837a7726053a9d12cd5bbbf69882a46c3b8e5 /ds9/parsers/zoomparser.tac | |
parent | 207cc225323330984b85a34551d9c9faf1bd94c4 (diff) | |
download | blt-8aa4c8d87e045c9edeff9f8969535d97ca88db91.zip blt-8aa4c8d87e045c9edeff9f8969535d97ca88db91.tar.gz blt-8aa4c8d87e045c9edeff9f8969535d97ca88db91.tar.bz2 |
backout ds9 parsers
Diffstat (limited to 'ds9/parsers/zoomparser.tac')
-rw-r--r-- | ds9/parsers/zoomparser.tac | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/ds9/parsers/zoomparser.tac b/ds9/parsers/zoomparser.tac deleted file mode 100644 index 16d7ade..0000000 --- a/ds9/parsers/zoomparser.tac +++ /dev/null @@ -1,46 +0,0 @@ -%{ -%} - -%token INT_ -%token REAL_ -%token STRING_ - -%start command - -%token CLOSE_ -%token IN_ -%token FIT_ -%token OPEN_ -%token OUT_ -%token TO_ - -%% - -command : {ProcessRealizeDS9} zoom - ; - -zoom : numeric {Zoom $1 $1} - | numeric numeric {Zoom $1 $2} - | OPEN_ {PanZoomDialog} - | CLOSE_ {PanZoomDestroyDialog} - | IN_ {Zoom 2 2} - | OUT_ {Zoom .5 .5} - | TO_ zoomTo - ; - -zoomTo: FIT_ {ZoomToFit} - | numeric {global zoom; set current(zoom) " $1 $1 "; ChangeZoom} - | numeric numeric {global zoom; set current(zoom) " $1 $2 "; ChangeZoom} - ; - -numeric : INT_ {set _ $1} - | REAL_ {set _ $1} - ; - -%% - -proc zoom::yyerror {msg} { - puts stderr "$msg:" - puts stderr "$zoom::yy_current_buffer" - puts stderr [format "%*s" $zoom::index_ ^] -} |