From 34877767c128aa2f54d76a9926cced7e75021587 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 26 May 2016 23:31:19 -0700 Subject: [PATCH] Change package alias antlr4 to antlr --- .../org/antlr/v4/test/runtime/go/Go.test.stg | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg b/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg index 3b9ec4f66..171405c69 100644 --- a/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg +++ b/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg @@ -227,7 +227,7 @@ GetExpectedTokenNames() ::= "p.GetExpectedTokens().StringVerbose(p.GetTokenNames RuleInvocationStack() ::= "p.GetRuleInvocationStack(nil)" -LL_EXACT_AMBIG_DETECTION() ::= <> +LL_EXACT_AMBIG_DETECTION() ::= <> ParserPropertyMember() ::= << @members { @@ -241,12 +241,12 @@ PositionAdjustingLexer() ::= << package antlrtest type PositionAdjustingLexer struct { - antlr4.*BaseLexer + antlr.*BaseLexer } -func NewPositionAdjustingLexer(input antlr4.CharStream) *PositionAdjustingLexer { +func NewPositionAdjustingLexer(input antlr.CharStream) *PositionAdjustingLexer { l := new(PositionAdjustingLexer) - l.BaseLexer = antlr4.NewBaseLexer( input ) + l.BaseLexer = antlr.NewBaseLexer( input ) return l } @@ -308,14 +308,14 @@ func isIdentifierChar(c rune) bool { } type PositionAdjustingLexerATNSimulator struct { - *antlr4.LexerATNSimulator + *antlr.LexerATNSimulator } -func NewPositionAdjustingLexerATNSimulator(recog antlr4.Lexer, atn *antlr4.ATN, decisionToDFA []*antlr4.DFA, sharedContextCache *PredictionContextCache) *PositionAdjustingLexerATNSimulator { +func NewPositionAdjustingLexerATNSimulator(recog antlr.Lexer, atn *antlr.ATN, decisionToDFA []*antlr.DFA, sharedContextCache *PredictionContextCache) *PositionAdjustingLexerATNSimulator { l := new(PositionAdjustingLexerATNSimulator) - l.LexerATNSimulator = antlr4.NewLexerATNSimulator(recog, atn, decisionToDFA, sharedContextCache) + l.LexerATNSimulator = antlr.NewLexerATNSimulator(recog, atn, decisionToDFA, sharedContextCache) return l } @@ -340,13 +340,13 @@ func NewLeafListener() *LeafListener { return l } -func (this *LeafListener) VisitTerminal( node antlr4.TerminalNode ) { +func (this *LeafListener) VisitTerminal( node antlr.TerminalNode ) { fmt.Println(node.GetSymbol().GetText()) } >> WalkListener(s) ::= << -walker := antlr4.NewParseTreeWalker(); +walker := antlr.NewParseTreeWalker(); walker.Walk(NewLeafListener(), ); >>