
|
If you were logged in you would be able to see more operations.
|
|
|
ANTLR v3
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
|
|
|
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'
;
|
|
Description
|
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'
;
|
Show » |
|
added template lexerRuleRefAndListLabel to deal with i+=INT in lexer; was not referencing <ruleLabelDefs()> in lexerRule either.