Tcl Source Code

View Ticket
Login
Ticket UUID: f698462e65742c1b500021338d3d9f0b306d2963
Title: Tcl_Parse migration
Type: Bug Created on: 2022-03-06 16:46:06
Submitter: dgp Assigned to: dgp
Subsystem: - New Stub Entries Severity: Important
Priority: 5 Medium Last modified: 2022-03-07 10:19:19
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: 9
Description:
I see some work on trunk toward modifying the "int" fields of Tcl_Token
and Tcl_Parse to become size_t.  I support the aim of the expanded capability.

I'd like it if we considered new interfaces instead of (or in addition to?) making mods to the existing open structs.  A redesigned interface could also better report parsing errors, support the parsing of whole scripts instead of just commands, and break free of some of the constraints to use contiguous memory in the incumbent design, allowing for more implementation freedom in the future.

Some prototyping has long been on the dgp-refactor branch, though there's still more to be done to provide the interface piece.
User Comments:
jan.nijtmans added on 2022-03-07 10:19:19:

My attempts will be documented in TIP #616, which - for now - still in an experimental state. The impact of such a change should be carefully considered, I'm in the process of doing that.