[antlr-interest] Seperating Grammar and Actions..
John D. Mitchell
johnm-antlr at non.net
Mon Jan 13 11:22:04 PST 2003
>>>>> "Ruslan" == Ruslan Zasukhin <sunshine at public.kherson.ua> writes:
>>>>>> on 1/13/03 4:29 AM, John D. Mitchell at johnm-antlr at non.net writes:
[...]
>> I must be missing something... I don't understand how that's any
>> better than using e.g., a macro preprocessor.
> Excuse me.
> You want to say that exists some macro preprocessor that can do this ?
> I.e. Join TreeParser grammar with Action grammar of C++ or Java ? and
> then I can send its result to ANTL ?
> Where this preprocessor? Why it is not included into ANTLR archive and
> examples of at least one grammar splinted on 2 files ?
Well, besides the one already mentioned:
* Write one yourself
* Use something crappy like CPP
* Use something like M4
* Use something like Tcl
* Use something like Noweb (ala the Antlr GCC stuff)
Geez,
John
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list