Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-05-31
01:13 • Closed ticket [1725186fff]: move expanded literal handling to parser. plus 7... artifact: 48478fbbca user: dgp
00:30 • Ticket [1725186fff]: 4 changes artifact: 3f879c0e0b user: andreas_kupries
00:23 • Ticket [1725186fff]: 4 changes artifact: 67f6181c0d user: andreas_kupries
00:17 • Ticket [1725186fff]: 4 changes artifact: b2420b5292 user: dgp
00:17 • Add attachment 1725186-3.patch to ticket [1725186fff] artifact: 7c9840d2db user: dgp
2007-05-30
23:15 • Ticket [1725186fff] move expanded literal handling to parser. status still O... artifact: 9937a629bb user: dgp
23:15 • Add attachment 1725186-2.patch to ticket [1725186fff] artifact: e87dbe7f55 user: dgp
10:19 • Ticket [1725186fff] move expanded literal handling to parser. status still O... artifact: 99d66f1b4c user: dgp
01:45 • Ticket [1725186fff]: 4 changes artifact: dff1efd1ab user: andreas_kupries
01:32 • Ticket [1725186fff]: 4 changes artifact: 9aa68bb894 user: dgp
01:32 • Add attachment 1725186.patch to ticket [1725186fff] artifact: f19007590c user: dgp
2007-05-24
20:51 • New ticket [1725186fff] move expanded literal handling to parser.. artifact: 0a72ce1fc2 user: dgp

move expanded literal handling to parser.

Closed / Accepted1725186fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-05-24 20:51:21
Make changes so parser
generates same tokens
for

{*}{set a 1}

as it does for

set a 1
dgpplain2007-05-30 01:32:17
File Added - 230994: 1725186.patch

Logged In: YES 
user_id=80530
Originator: YES


first patch attempt just adds the
capability to the parser.

surprisingly few (one!) parse.test
tests are unhappy about this change.
File Added: 1725186.patch
andreas_kupriesplain2007-05-30 01:45:03
Logged In: YES 
user_id=75003
Originator: NO

Quick glance. Looks ok as far as I understand the token structures. Only wondering if the removal of the 'PrintToken' functions is intentional.
dgpplain2007-05-30 10:19:39
Logged In: YES 
user_id=80530
Originator: YES


yes, those appeared to be some debugging
tools that got mistakenly committed.
Duplicated #define's were certainly
a mistake, and the routines didn't appear
to me to do any more than the existing
[testparser] command can do.

If they're desired for some reason, it's
easy enough to restore them.
dgpplain2007-05-30 23:15:19
File Added - 231122: 1725186-2.patch

Logged In: YES 
user_id=80530
Originator: YES

updated patch adds simplification
of sections that no longer have
to deal with expanded literals
in the token stream.

File Added: 1725186-2.patch
dgpplain2007-05-31 00:17:22
File Added - 231128: 1725186-3.patch

Logged In: YES 
user_id=80530
Originator: YES


next (final?) version of the patch
adds comments to the parser additions
to explain what's going on a bit better.


File Added: 1725186-3.patch
andreas_kupriesplain2007-05-31 00:23:40
Logged In: YES 
user_id=75003
Originator: NO

Regarding debugging routines ... I have no big desire for them. Especially if testparser can do the same thing. Re define's I was not aware that they were dups, removal for such is definitely ok.
andreas_kupriesplain2007-05-31 00:30:48
Logged In: YES 
user_id=75003
Originator: NO

Review: Looks good after a single scan through it. I am assuming that it compiles and passes the testsuite ... +1 for commit. It is wonderful to see all the special token expansions done for #280 disappear and everything done more generally.
dgpplain2007-05-31 01:13:13
Logged In: YES 
user_id=80530
Originator: YES

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

Attachments: