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

Key: ANTLR-114
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Terence Parr
Reporter: Terence Parr
Votes: 0
Watchers: 0
Operations

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

list label is not defined in Java code

Created: 20/Apr/07 02:18 PM   Updated: 21/Apr/07 04:29 PM
Component/s: ANTLR Core
Affects Version/s: 3.0b7
Fix Version/s: 3.0b8


 Description  « Hide
No list_h definition is generated:

grammar Test2;

start
   : HEXADECIMAL_ESCAPE_SEQUENCE
   ;

HEXADECIMAL_ESCAPE_SEQUENCE
: '\\x' (h+=HEX_DIGIT)+ {$h.size()<=4}? // Restrict the number of
HEX_DIGITs to a maximum of 4
;
fragment HEX_DIGIT
: '0'..'9'
| 'A'..'F'
| 'a'..'f'
;


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 21/Apr/07 04:29 PM
Was not handling at all in lexer.

added template lexerRuleRefAndListLabel to deal with i+=INT in lexer; was not referencing <ruleLabelDefs()> in lexerRule either.