diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-02-22 18:45:16 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-02-22 18:45:16 (GMT) |
commit | 38951a036f2314ea06fda5a96a7f6b349262186a (patch) | |
tree | f6eb6eb4fa5323703fbbabeb700e7f97d7cfd5f0 /taccle | |
parent | 54d1015a53f693bf61dc44c7852419a574f1d84a (diff) | |
download | blt-38951a036f2314ea06fda5a96a7f6b349262186a.zip blt-38951a036f2314ea06fda5a96a7f6b349262186a.tar.gz blt-38951a036f2314ea06fda5a96a7f6b349262186a.tar.bz2 |
add namespace
Diffstat (limited to 'taccle')
-rw-r--r-- | taccle/taccle.tcl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/taccle/taccle.tcl b/taccle/taccle.tcl index 5d669ee..88f3f3b 100644 --- a/taccle/taccle.tcl +++ b/taccle/taccle.tcl @@ -938,12 +938,12 @@ proc write_parser {} { set rule \$table(\$state:\$token,target) set ${::p}l \$rules(\$rule,l) if \{\[info exists rules(\$rule,e)\]\} \{ - set ${::p}dc \$rules(\$rule,e) + set dc \$rules(\$rule,e) \} else \{ - set ${::p}dc \$rules(\$rule,dc) + set dc \$rules(\$rule,dc) \} - set stackpointer \[expr {\[llength \$state_stack\]-\$${::p}dc}\] - setupvalues \$value_stack \$stackpointer \$${::p}dc + set stackpointer \[expr {\[llength \$state_stack\]-\$dc}\] + setupvalues \$value_stack \$stackpointer \$dc set _ \$1 set yylval \[lindex \$value_stack end\] switch -- \$rule {" @@ -954,7 +954,7 @@ proc write_parser {} { } puts $::dest " } - unsetupvalues \$${::p}dc + unsetupvalues \$dc # pop off tokens from the stack if normal rule if \{!\[info exists rules(\$rule,e)\]\} \{ incr stackpointer -1 |