aboutsummaryrefslogtreecommitdiff
path: root/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/VecMath_Parser.g3
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/VecMath_Parser.g3')
-rw-r--r--runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/VecMath_Parser.g335
1 files changed, 0 insertions, 35 deletions
diff --git a/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/VecMath_Parser.g3 b/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/VecMath_Parser.g3
deleted file mode 100644
index 406ec13..0000000
--- a/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/VecMath_Parser.g3
+++ /dev/null
@@ -1,35 +0,0 @@
-parser grammar VecMath_Parser;
-
-options {
- output=AST;
-}
-
-tokens {
- SHIFT;
- VEC;
-}
-
-public
-prog
- : stat+ ;
-
-stat
- : ID EQUAL expr -> ^( EQUAL ID expr )
- | PRINT^ expr
- ;
-
-expr
- : multExpr ( PLUS^ multExpr )*
- ;
-
-multExpr
- : primary ( ( MULT^ | DOT^ ) primary )*
- ;
-
-primary
- : INT
- | ID
- | OPEN_SQUARE expr ( COMMA expr )* CLOSE_SQUARE -> ^( VEC expr+ )
- | OPEN_BRACE expr CLOSE_BRACE -> expr
- ;
-