You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
386 B
23 lines
386 B
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.
|
|
;
|