Skip to content
Tcl Source Code Check-in [1757fd6ebc]
Login

Check-in [1757fd6ebc]

Overview
Comment:Rewrite of the TclCompileScript() routine. Primarily this breaks that large, rather convoluted routine into many smaller more single-purpose routines for greater clarity. This also permits more sharing of function components. Ensemble compiles now share the same low level routines as top-level command compiles. This refactoring should also have the benefit of easing merging between branches by better locating patches according to what function or data structure they tweak. Also in this checkin: Minimized calls to Tcl_ResetResult() during compile. Several commands compile their detected syntax errors into bytecode that reports the syntax error. Significant reform to the TIP 280 machinery, including elimination of the litInfo hash table. Its function of finding the index of a compiled command in a script from a pc value has been redone using the codeDelta information already stored in ByteCode.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1757fd6ebc43d0e9cde478a88258a7d37c116343
User & Date: dgp on 2013-07-18 20:27:01.761
Other Links: manifest | tags
Context
2013-10-21
22:59
Merge to TCS rewrite merge point. check-in: 959a872065 user: dgp tags: dgp-stack-depth-tester
2013-07-23
09:27
Add "testfork" test command. Not used in any test-case yet check-in: 48ebb48d02 user: jan.nijtmans tags: trunk
2013-07-20
04:54
merge trunk. still have stack depth issues in [subst] syntax errors. check-in: df020c50d0 user: dgp tags: dgp-refactor
2013-07-18
20:27
Rewrite of the TclCompileScript() routine. Primarily this breaks that large, rather convoluted rout... check-in: 1757fd6ebc user: dgp tags: trunk
18:25
[assemble] compile syntax error into bytecode reporting syntax error message. closed check-in: fd39545639 user: dgp tags: dgp-tcs-rewrite
15:05
[Bug 1c17fbba5d] Fix -errorinfo from syntax errors so that the error is not obscured. Instead highl... check-in: 91ed4186a8 user: dgp tags: trunk
Changes