After some digging I've found a tutorial in v2.7:  
http://www.ibm.com/developerworks/aix/library/au-c_plusplus_antlr/index.html.  
However, while implementing the preprocessor I noticed that the  
antlr.TokenStreamSelector add input stream requires a antlr.TokenStream,  
but the org.antlr.runtime.Lexer inherits from antlr.runtime.TokenStream.  
Now I'ma bit puzzled why there are two different TokenStream classes. Is  
this purely a migration issue that is waiting to be resolved, or should I  
use some other facility for multiple token streams?

On Jul 8, 2009 12:33pm, Jeroen van Schagen <[email protected]>  
wrote:
> Hello,

> Currently I'm working on the implementation of a mark-up DSL using ANTLR.  
> This language makes use of module definitions and import constructs. What  
> would be the optimal approach to loading contents of dependent modules in  
> my AST?


> The parser grammar is as follows:
> module: 'module' moduleId ( imprt | site | function )* 'end' EOF ;
> moduleId: IDENTIFIER ( '.' IDENTIFIER )* ;
> imprt: 'import' moduleId ';' ;


> Thanks in advance!
> Jeroen


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

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

Reply via email to