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