forked from jasder/antlr
Minor tweaks to template
This commit is contained in:
parent
bd35305bc8
commit
d6b1041224
|
@ -98,7 +98,7 @@ type <parser.name> struct {
|
|||
grammarFileName string
|
||||
}
|
||||
|
||||
func New<parser.name>(input TokenStream) <parser.name> {
|
||||
func New<parser.name>(input antlr4.TokenStream) *<parser.name> {
|
||||
|
||||
var decisionToDFA = make([]antlr4.DFA,len(deserializedAtn.DecisionToState))
|
||||
var sharedContextCache = antlr4.NewPredictionContextCache()
|
||||
|
|
|
@ -186,7 +186,7 @@ public class GoTarget extends Target {
|
|||
return ((String)o).replace("\\u", "\\u005Cu");
|
||||
}
|
||||
|
||||
return super.toString(o, formatString, locale).replace("\\'", "\'");
|
||||
return super.toString(o, formatString, locale);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue