History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ANTLR-63
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Terence Parr
Reporter: Jim Idle
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ANTLR v3

Token.UP and Token.DOWN are defined literally to dfaEdge() template

Created: 12/Dec/06 10:09 AM   Updated: 22/Dec/06 12:55 PM
Component/s: ANTLR Core
Affects Version/s: None
Fix Version/s: 3.0b6

Environment: Most noticeble in C codegen because i had to come up with a structure that allowd the syntax token.UP in codegen. However this cannot be used in all cases, and I am sur that the other targets will hit this shortly in tree parsers.


 Description  « Hide
Calls to the codegen template dfaEdge() occasionally send in the literal text Token.UP (tree parser). Wheneer Token.INVALID Token.EOR Token.DOWN and Token.UP are required, they shuodl be generated via a template, so that their particaul expression in the target codegen can be used, rather than Token.UP.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 22/Dec/06 12:55 PM
Made Token.UP plain UP etc... I think that got changed earlier during an over aggressive search/replace. Technically should be a template, but probably ok that some predefined names go out as strings not templates.