2009/9/13 Martijn Reuvers <[email protected]>:
> Not sure what you want with the import statement in the parser, but I
> assume you just want to just use the lexer grammar as input for your
> parser grammar, then you should use:

Yep, I'm just trying to break up the grammar into smaller pieces.

> L.g
>
> @header {
>  package x;
> }
>
>
> X.g:
>
> options {
>    tokenVocab=X;
> }
>
> @header {
>  package x;
> }

I'm probably not understanding you correctly but I can't get this to
even compile. I've tried some variations of what you listed above
("tokenVocab = L;"; with the import statement and without; with L.g in
x instead of imports) but none of it works. And in the cases where it
does output something, the lexer is still in the wrong directory.

Could you spell it out for me? :-) What should L.g say and where
should it be located? What should X.g say? Did you actually run it?

Cheers,
Hilco

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