Thanks for ur reply,
Ya i followed ur idea, but the problem i am getting in using filter is ,
when i set the filter as true, my common token stream contains only the
tokens of my interst, , i can do all modifications in those tokens only
,but, how can i make those token changes reflect in my original file with
all the other non intersted tokens untouched

On Fri, Oct 1, 2010 at 11:13 PM, Bart Kiers <[email protected]> wrote:

> On Fri, Oct 1, 2010 at 7:35 PM, vijay e <[email protected]> wrote:
>
>> Hello
>> I am doing  a code translator , where i just need to find certain patterns
>> in my C code and change few lines in tht pattern, is there any way where i
>> can do this translation without writin my entire C Grammar, because i am
>> interested in only very few patterns, so without writin the grammar for
>> other patterns , is thr a way to do the translation
>>
>>
> No, you don't need to write an entire grammar for the C language. You can
> do something called "fuzzy parsing" in 'the Definitive ANTLR reference'. An
> example can be found here:
>
> http://stackoverflow.com/questions/2277130/using-antlr-to-parse-a-log-file
>
> Of course you could grab a full C grammar from the ANTLR wiki and adjust it
> to your needs.
>
> http://www.antlr.org/grammar/list
>
> Regards,
>
> Bart.
>
>


-- 
Vijay.E,
Mtech (Pursuing),
Department of Computer Science,
IIT Madras.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to