Get older token file

This commit is contained in:
Peter Boyer 2017-03-12 12:09:08 -04:00
parent b5c5ce2188
commit 4254fb63c6
1 changed files with 1 additions and 5 deletions

View File

@ -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) + "]"
}