One buffer fits all

This commit is contained in:
2015-02-23 20:07:19 +07:00
parent 75ff8bf4d5
commit fc170098e9
8 changed files with 70 additions and 85 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ type (
)
// Creates a new parser
func New(buf buffer.Bufferer, sels []string) *Parser {
func New(buf *buffer.Buffer, sels []string) *Parser {
return &Parser{
lex: lexer.New(buf),
ctx: &context{