Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2022-03-07
10:19 • Ticket [f698462e65] Tcl_Parse migration status still Open with 4 other chang... artifact: edc1c4725f user: jan.nijtmans
2022-03-06
16:46 • Ticket [f698462e65]: 3 changes artifact: c63ac37d83 user: dgp
16:46 • New ticket [f698462e65]. artifact: 9148f9dfd2 user: dgp

Tcl_Parse migration

Openf698462e65742c1b500021338d3d9f0b306d2963Created 5 years agoUpdated 5 years ago
Descriptionplain2022-03-06 16:46:06
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.
dgp Ticket [f698462e65]: 3 changes [History diff]2022-03-06 16:46:37
jan.nijtmanswiki2022-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.

Log in (anonymous is fine) to add a comment.