diff options
Diffstat (limited to 'runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Reduce.g3')
-rw-r--r-- | runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Reduce.g3 | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Reduce.g3 b/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Reduce.g3 index 0ed570b..db61e42 100644 --- a/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Reduce.g3 +++ b/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/Reduce.g3 @@ -2,20 +2,14 @@ options { - tokenVocab=VecMath; - ASTLabelType=CommonTree; - output=AST; - filter=true; - language=CSharp3; + tokenVocab=VecMath; + ASTLabelType=CommonTree; + output=AST; + filter=true; + language=CSharp3; } - -@members -{ - //public override IAstRuleReturnScope Topdown() { return topdown(); } - public override IAstRuleReturnScope Bottomup() { return bottomup(); } -} - +@namespace{Antlr3.Runtime.Test.Composition} /** Rewrite: x+x to be 2*x, 2*x to be x<<1, x<<n<<m to be x<<(n+m) */ bottomup |