summaryrefslogtreecommitdiffstats
path: root/ds9
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-02-24 20:36:19 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-02-24 20:36:19 (GMT)
commit44816469866c8a1954b3d7f429a2dd40a478f1d0 (patch)
treefab191e8a62eaf8836b4621decbd96ce6ca999f9 /ds9
parente6a229c36553a237c46c7fecd21ebe1aeb093ff2 (diff)
downloadblt-44816469866c8a1954b3d7f429a2dd40a478f1d0.zip
blt-44816469866c8a1954b3d7f429a2dd40a478f1d0.tar.gz
blt-44816469866c8a1954b3d7f429a2dd40a478f1d0.tar.bz2
add support for namespaces
Diffstat (limited to 'ds9')
-rw-r--r--ds9/library/lex.fcl5
-rw-r--r--ds9/library/parser.tac4
2 files changed, 5 insertions, 4 deletions
diff --git a/ds9/library/lex.fcl b/ds9/library/lex.fcl
index 3a5c6e6..7e37754 100644
--- a/ds9/library/lex.fcl
+++ b/ds9/library/lex.fcl
@@ -6,8 +6,9 @@ source $ds9(root)/library/parser.tab.tcl
%option caseless
%option nodefault
%option nointeractive
-#%option stack
-#%option debug
+%option stack
+%option yylineno
+%option debug
D [0-9]
E [Ee][+-]?{D}+
diff --git a/ds9/library/parser.tac b/ds9/library/parser.tac
index bf92271..91da182 100644
--- a/ds9/library/parser.tac
+++ b/ds9/library/parser.tac
@@ -41,6 +41,6 @@ numeric : INT_ {set _ $1}
proc yy::yyerror {msg} {
puts stderr "$msg:"
- puts stderr "$yy::yy_buffer"
- puts stderr [format "%*s" $yy::yy_index ^]
+ puts stderr "$yy::yy_current_buffer"
+ puts stderr [format "%*s" $yy::index_ ^]
}