func newParser(f string, r io.Reader, golike bool) (*parser, *lex8.Recorder) { ret := new(parser) ret.f = f ret.golike = golike x, rec := makeTokener(f, r, golike) ret.x = x ret.Parser = lex8.NewParser(ret.x, Types) return ret, rec }
func newParser(f string, r io.Reader) (*parser, *lex8.Recorder) { ret := new(parser) var x lex8.Tokener = newLexer(f, r) x = newSemiInserter(x) rec := lex8.NewRecorder(x) ret.x = lex8.NewCommentRemover(rec) ret.Parser = lex8.NewParser(ret.x, Types) return ret, rec }