diff options
author | Sadaf Ebrahimi <sadafebrahimi@google.com> | 2022-05-03 18:25:02 +0000 |
---|---|---|
committer | Sadaf Ebrahimi <sadafebrahimi@google.com> | 2022-05-03 20:25:32 +0000 |
commit | 9e914bc8d7fd82ea1d51ac2950ff66092efa780e (patch) | |
tree | 9ba69b307a17b6d4b5410fce4e058f24f99504d7 /runtime/CSharp3/Sources/Antlr3.Runtime.Test/TestActionFeatures.g3 | |
parent | 1f884fbde58c0c38f9a576a82e74d6d0ee010d5a (diff) | |
download | antlr-9e914bc8d7fd82ea1d51ac2950ff66092efa780e.tar.gz |
Updating antlr 3.5.2 to antlr 3.5.3
Test: treehugger
Change-Id: I6c91c2379d82c967dc84bfe825cd0da6e5835a03
Diffstat (limited to 'runtime/CSharp3/Sources/Antlr3.Runtime.Test/TestActionFeatures.g3')
-rw-r--r-- | runtime/CSharp3/Sources/Antlr3.Runtime.Test/TestActionFeatures.g3 | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/runtime/CSharp3/Sources/Antlr3.Runtime.Test/TestActionFeatures.g3 b/runtime/CSharp3/Sources/Antlr3.Runtime.Test/TestActionFeatures.g3 deleted file mode 100644 index 174526f..0000000 --- a/runtime/CSharp3/Sources/Antlr3.Runtime.Test/TestActionFeatures.g3 +++ /dev/null @@ -1,65 +0,0 @@ -grammar TestActionFeatures; - -options { - language=CSharp3; - TokenLabelType=CommonToken; - output=AST; - ASTLabelType=CommonTree; -} - -@lexer::namespace{Antlr3.Runtime.Test} -@parser::namespace{Antlr3.Runtime.Test} - -@parser::header{using Console = System.Console;} - -/* - * Parser Rules - */ - -public -compileUnit - : EOF - ; - -// SET_DYNAMIC_SCOPE_ATTR - -setDynamicScopeAttr -scope {int i;} - : EOF {$setDynamicScopeAttr::i=3; $setDynamicScopeAttr[0]::i=3; $setDynamicScopeAttr[-0]::i=3;} - ; - -// DYNAMIC_SCOPE_ATTR - -dynamicScopeAttr -scope {int i;} - : EOF {Console.WriteLine($dynamicScopeAttr::i);} - ; - -// DYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR - -dynamicNegativeIndexedScopeAttr -scope {int i;} - : EOF {Console.WriteLine($dynamicNegativeIndexedScopeAttr[-1]::i);} - ; - -// DYNAMIC_ABSOLUTE_INDEXED_SCOPE_ATTR - -dynamicAbsoluteIndexedScopeAttr -scope {int i;} - : EOF {Console.WriteLine($dynamicNegativeIndexedScopeAttr[0]::i);} - ; - -// ISOLATED_DYNAMIC_SCOPE - -isolatedDynamicScope -scope {int i;} - : EOF {Console.WriteLine($isolatedDynamicScope.Count);} - ; - -/* - * Lexer Rules - */ - -WS - : ' ' - ; |