summaryrefslogtreecommitdiffstats
path: root/taccle/taccle.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-03-03 21:26:02 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-03-03 21:26:02 (GMT)
commit7922f24e48c52cff9b98162c3963945b0a0011dc (patch)
treedf647839972648c08140b047a1e828902f578aeb /taccle/taccle.tcl
parent1883aba178b0a40e813a634ad31dbc81181f0857 (diff)
downloadblt-7922f24e48c52cff9b98162c3963945b0a0011dc.zip
blt-7922f24e48c52cff9b98162c3963945b0a0011dc.tar.gz
blt-7922f24e48c52cff9b98162c3963945b0a0011dc.tar.bz2
simplify tab file
Diffstat (limited to 'taccle/taccle.tcl')
-rw-r--r--taccle/taccle.tcl4
1 files changed, 1 insertions, 3 deletions
diff --git a/taccle/taccle.tcl b/taccle/taccle.tcl
index 661303f..0d6948b 100644
--- a/taccle/taccle.tcl
+++ b/taccle/taccle.tcl
@@ -1016,15 +1016,13 @@ proc write_array {fd name values} {
# Writes a header file that should be [source]d by the lexer.
proc write_header_file {} {
# scan through token_table and write out all non-implicit terminals
- puts $::header "namespace eval ${::p} \{"
foreach tok_id $::token_list {
if {$::token_id_table($tok_id,t) == $::TERMINAL && \
[string is integer $tok_id] && $tok_id >= 256} {
set token $::token_id_table($tok_id)
- puts $::header "variable ${token} $tok_id"
+ puts $::header "set ${token} $tok_id"
}
}
- puts $::header "\}"
}
######################################################################