[antlr-interest] 4.0 daily builds
Terence Parr
parrt at cs.usfca.edu
Mon Jan 2 18:25:57 PST 2012
WillCheck how this works and get back to you…
Ter
On Jan 2, 2012, at 1:32 PM, Gavin Lambert wrote:
> 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.
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list