[antlr-interest] 4.0 daily builds
Gavin Lambert
antlr at mirality.co.nz
Mon Jan 2 13:32:18 PST 2012
At 11:44 2/01/2012, Terence Parr wrote:
>> Can the special rules modify the text they're matching
>> in terms of the text the eventual token gets?
>
>sure by setting this.text.
Does that work when more() is used to tell it to return a single
token? As I recall, while lexer fragment rules could set $text
all they wanted, it didn't actually have any effect, since the
final rule simply set its text based on the matched bounds, not
the text of its subrules.
More information about the antlr-interest
mailing list