[antlr-interest] Problems using the command-line grammar interpreter

Terence Parr parrt at cs.usfca.edu
Sat Oct 14 11:02:13 PDT 2006


interpreter can't handle backtracking at the moment.
Ter
On Oct 14, 2006, at 10:37 AM, Kay Roepke wrote:

>
> On 14. Oct 2006, at 14:52 Uhr, Kay Roepke wrote:
>
>> Wouldn't you have to say
>> org.antlr.tool.Interp Pseudocode2.g 'WS ASSIGN' ../test.slpc
>> ?
>>
>> you cannot ignore parser rules, only tokens (assign vs. ASSIGN)  
>> and I think you have to supply the tokens to ignore in a string,  
>> thus the single quotes on the command line.
>
> Nevermind. My mistake here.
>
> It seems to be that auto-backtracking triggers some issues here.  
> Ter might know better...without backtrack=true it works for me.
>
> -k
>
> -- 
> Kay Röpke <kroepke at classdump.org>
> classdump Software
> Key fingerprint = A849 0F2C C322 4022 379E  8661 7E1B FE0D 4CD2 A6D0
>
>
>



More information about the antlr-interest mailing list