aboutsummaryrefslogtreecommitdiff
path: root/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Simplify.g3
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Simplify.g3')
-rw-r--r--runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Simplify.g320
1 files changed, 0 insertions, 20 deletions
diff --git a/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Simplify.g3 b/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Simplify.g3
deleted file mode 100644
index f1c2550..0000000
--- a/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Simplify.g3
+++ /dev/null
@@ -1,20 +0,0 @@
-tree grammar Simplify;
-
-options {
- tokenVocab=VecMath;
- ASTLabelType=CommonTree;
- output=AST;
- language=CSharp3;
- filter=true;
- //rewrite=true;
-}
-
-@namespace{Antlr3.Runtime.Test.Composition}
-
-topdown
- : ^( MULT INT ^(VEC (e+=.)+) ) -> ^(VEC ^(MULT INT $e)+)
- ;
-
-bottomup
- : ^(MULT a=. b=INT {$b.int==0}?) -> $b // x*0 -> 0
- ;