[antlr-interest] Tree pattern matching in C target

Piotr Kaleta piotrek.kaleta at gmail.com
Mon Oct 4 08:15:54 PDT 2010


 What I meant is simple tree parsers which are able to recognize when
traversing the tree downwards or upwards, based on special tokens DOWN
and UP. The examples present both on the website and in "Definite ANTLR
Reference" (the DefRef.g grammar) shows only the Java parsers with the
downup() function. It seems however that this function is not present in
the generated C source of the parser.

Regards,
Piotr Kaleta

On 10/04/2010 04:51 PM, Jim Idle wrote:
> Hang on - do you mean just straight forward tree parsers? That all works, so
> you grammar must be incorrect. It is the pattern searching stuff that is not
> implemeneted.
>
> jim
>
>> -----Original Message-----
>> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
>> bounces at antlr.org] On Behalf Of Alan Lehotsky
>> Sent: Sunday, October 03, 2010 12:39 PM
>> To: antlr-interest at antlr.org
>> Subject: Re: [antlr-interest] Tree pattern matching in C target
>>
>>
>> I'm using the C target and had attempted to use the up/down matching code
>> and couldn't make it work.   Since I was still in the prototyping stage, I
> didn't
>> spend much time trying to figure out why it didn't work. Never thought of
>> the possibility that it hadn't been implemented.
>>
>> It would be a good thing to at least document the absence of this model.
>>
>>
>>> From: "Jim Idle" <jimi at temporal-wave.com>
>>> Date: October 3, 2010 12:34:19 PM EDT
>>> To: <antlr-interest at antlr.org>
>>> Subject: Re: [antlr-interest] Tree pattern matching in C target
>>>
>>>
>>> No - I have had zero demand for it to be honest.
>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
>> email-address
>
> 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