Artifacts Associated With Ticket 1031507
Ticket change [29af571a2b] (rid 88910) by rmax on 2004-09-20 20:22:02:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Here is my first try on implementing TIP #201. While doing this I stumbled over a parser problem with alphanumeric operators. Initially it tried to parse 'int()' as 'in t()' after adding 'in'. This would already have happened with 'eq', and 'ne' if there had been a function that started with one of those character seqences. As a workaround I am accepting alphanumeric operands only if they are not followed by another alphanumeric character. I'd like this to be reviewed by people with more C experience than I for correctness, and whether there is a better way to do it.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "rmax"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "TIP #201 reference implementation"
- type initialized to: "Patch"
Ticket change [e867895344] (rid 104640) by rmax on 2004-09-21 03:25:38:
- icomment:
File Added - 102170: tip201.patch
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Add attachment "tip201.patch" [b8c19f7211] (rid 129015) by rmax on 2004-09-21 03:25:38.
Ticket change [c160cb2778] (rid 111309) by dgp on 2004-09-21 03:39:05:
- icomment:
Logged In: YES user_id=80530 test 25.4 fails -- just a copy/paste error writing the test. more seriously, the isalpha() tests should be moved a bit to avoid reading past the end of buffer. Tests in parseExpr.test (making use of the [testexprparser] command) would be best to verify those details.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5b45db6eae] (rid 118292) by rmax on 2004-09-21 14:52:56:
- icomment:
Logged In: YES user_id=124643 I have moved the check for all alpha operators down to the place where boolean literals and function names are checked. I think it is better to have all alphanumeric parsing at one place. The only downside I can see is that it might be somewhat slower to have them there. The way it is implemented now implies that an operator or literal will never consist of anything but alphabetic caracters, and that there will never be a function name like in3() or true_42() that starts with alpha characters that look like an operator or a literal immediately followed by a digit or underscore.
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Add attachment "tip201-3.patch" [4035ea8315] (rid 121596) by rmax on 2004-09-21 14:52:56.
Ticket change [c803720abf] (rid 122035) by rmax on 2004-09-21 14:52:57:
- icomment:
File Added - 102230: tip201-3.patch
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Ticket change [e6346b8de9] (rid 104263) by msofer on 2004-10-23 05:13:43:
- closedate changed to: "2004-10-22T22:13:43"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 TIP #201 has been committed on 2004-10-08 by dkf. Implementation evolved from this patch.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "msofer"