• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1grammar VecMath;
2
3options
4{
5   ASTLabelType=CommonTree;
6   output=AST;
7   language=CSharp3;
8}
9
10import VecMath_Lexer, VecMath_Parser;
11
12@lexer::namespace{Antlr3.Runtime.Test.Composition}
13@parser::namespace{Antlr3.Runtime.Test.Composition}
14
15public
16main
17   : prog
18   ;
19
20dummy
21   : 'DUMMY' // 1. If the parser or the composite grammar does not contain a token, no lexer is generated.
22   ;
23