From 4254fb63c6310c18e4b885a2f398f3c25cffbc41 Mon Sep 17 00:00:00 2001 From: Peter Boyer Date: Sun, 12 Mar 2017 12:09:08 -0400 Subject: [PATCH] Get older token file --- runtime/Go/antlr/token.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/runtime/Go/antlr/token.go b/runtime/Go/antlr/token.go index adacdf4c8..d7047b874 100644 --- a/runtime/Go/antlr/token.go +++ b/runtime/Go/antlr/token.go @@ -14,10 +14,6 @@ type TokenSourceCharStreamPair struct { charStream CharStream } -func NewTokenSourceCharStreamPair(source TokenSource, stream CharStream) *TokenSourceCharStreamPair { - return &TokenSourceCharStreamPair{source, stream} -} - // A token has properties: text, type, line, character position in the line // (so we can ignore tabs), token channel, index, and source from which // we obtained this token. @@ -208,7 +204,7 @@ func (c *CommonToken) String() string { ch = "" } - return "[" + "channel:" + strconv.Itoa(c.channel) + " @" + strconv.Itoa(c.tokenIndex) + "," + strconv.Itoa(c.start) + ":" + strconv.Itoa(c.stop) + "='" + + return "[@" + strconv.Itoa(c.tokenIndex) + "," + strconv.Itoa(c.start) + ":" + strconv.Itoa(c.stop) + "='" + txt + "',<" + strconv.Itoa(c.tokenType) + ">" + ch + "," + strconv.Itoa(c.line) + ":" + strconv.Itoa(c.column) + "]" }