summaryrefslogtreecommitdiffstats
path: root/ds9
diff options
context:
space:
mode:
Diffstat (limited to 'ds9')
-rw-r--r--ds9/library/source.tcl3
-rw-r--r--ds9/make.include24
-rw-r--r--ds9/parsers/zoomlex.fcl49
-rw-r--r--ds9/parsers/zoomparser.tac46
4 files changed, 1 insertions, 121 deletions
diff --git a/ds9/library/source.tcl b/ds9/library/source.tcl
index bf947cc..48bd469 100644
--- a/ds9/library/source.tcl
+++ b/ds9/library/source.tcl
@@ -188,9 +188,6 @@ source $ds9(root)/library/xmfbox.tcl
source $ds9(root)/library/xmlrpc.tcl
source $ds9(root)/library/xpa.tcl
-#source $ds9(root)/library/zoomparser.tcl
-#source $ds9(root)/library/zoomlex.tcl
-
switch [tk windowingsystem] {
x11 {}
aqua {source $ds9(root)/library/macosx.tcl}
diff --git a/ds9/make.include b/ds9/make.include
index f9a3fa2..c49aa53 100644
--- a/ds9/make.include
+++ b/ds9/make.include
@@ -1,20 +1,3 @@
-#--------------------------parsers
-
-parsers : zoomparser
-
-zoomparser : ../library/zoomparser.tcl ../library/zoomlex.tcl
-
-../library/zoomparser.tcl : ../parsers/zoomparser.tac
- tclsh $(prefix)/taccle/taccle.tcl -p zoom -d -v -w $<
- mv ../parsers/zoomparser*.tcl ../library/.
-
-../library/zoomlex.tcl : ../parsers/zoomlex.fcl
- tclsh $(prefix)/fickle/fickle.tcl -P zoom $<
- mv ../parsers/zoomlex.tcl ../library/.
-
-#%.tcl: %.fcl
-#%.tcl: %.tac
-
#--------------------------framework
$(LIBDIR)/library : $(prefix)/ds9/library/*.tcl
@@ -84,12 +67,7 @@ $(LIBDIR)/math : $(prefix)/tcllib/modules/math
.PHONY : distclean
-distclean: clean parsersclean
+distclean: clean
-rm -f Makefile config.cache config.log config.status
-rm -rf autom4te.cache
-parsersclean:
- -rm -f ../library/*.output ../library/*.tab.tcl
- -rm -f ../library/zoomparser.tcl ../library/zoomlex.tcl
- -rm -f ../parsers/*.output ../parsers/*.tcl
-
diff --git a/ds9/parsers/zoomlex.fcl b/ds9/parsers/zoomlex.fcl
deleted file mode 100644
index 79ff034..0000000
--- a/ds9/parsers/zoomlex.fcl
+++ /dev/null
@@ -1,49 +0,0 @@
-%{
-source $ds9(root)/library/zoomparser.tab.tcl
-%}
-
-%option noyywrap
-%option caseless
-%option nodefault
-%option nointeractive
-#%option stack
-%option yylineno
-#%option debug
-
-D [0-9]
-E [Ee][+-]?{D}+
-
-%%
-
-close {return $zoom::CLOSE_}
-in {return $zoom::IN_}
-fit {return $zoom::FIT_}
-open {return $zoom::OPEN_}
-out {return $zoom::OUT_}
-to {return $zoom::TO_}
-
-# INT
-[+-]?{D}+ {set zoom::yylval $yytext; return $zoom::INT_}
-
-# REAL
-[+-]?{D}+"."?({E})? |
-[+-]?{D}*"."{D}+({E})? {set zoom::yylval $yytext; return $zoom::REAL_}
-
-# Quoted STRING
-\"[^\"]*\" {set zoom::yylval [string range $yytext 1 end-1]; return $zoom::STRING_}
-
-# Quoted STRING
-\'[^\']*\' {set zoom::yylval [string range $yytext 1 end-1]; return $zoom::STRING_}
-
-# Quoted STRING
-\{[^\}]*\} {set zoom::yylval [string range $yytext 1 end-1]; return $zoom::STRING_}
-
-# STRING
-\S+\S+ {set zoom::yylval $yytext; return $zoom::STRING_}
-
-\s # ignore whitespace
-
-. {set zoom::yylval $yytext; return $zoom::yylval}
-
-%%
-
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_ ^]
-}