I have a grammar file in which a text file structure and a complete logic 
(basic like with if-then-else etc) is described in.
Because of it's complexity, I would like to extract a separate grammar for 
"logic". So I want one grammar for the file (header, footer...) and an 
additional grammar for the logic only.

How can I achive this and how do I concatinate thoose 2 grammars?

Thanks in advance
  fridi



start   
        : file;

file
        : header content footer? EOF
        ;       
        
content
        : logic? table*
        ;

logic   
        : (PAGE_DECLARATION 
           | line)+
          END
        ;
        
line
        : w = PREFIX command 
        ;

command 
        : ifStatement | THEN | ELSE | actionSeq
        ;

ifStatement     
        : IF^ expression
        ;
-- 
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

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