[antlr-interest] Type-checking and compiling a language with import constructs

Jeroen van Schagen jeroen.v.schagen at gmail.com
Wed Jul 8 03:33:04 PDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090708/fefdd8f1/attachment.html 


More information about the antlr-interest mailing list