func New(l *lexer.Lexer) *Parser {
	p := &Parser{
		l:      l,
		errors: []Error{},
	}
	p.nextToken()
	p.nextToken()
	return p
}
New instanciates a new Parser.
package parser
import (
	"fmt"
	"github.com/lysrt/bro/html"
	"github.com/lysrt/bro/html/lexer"
)
const nodeClosingElement html.NodeType = "closing element"
type Error struct {
	Token lexer.Token
	Msg   string
}
func (e Error) Error() string {
	return e.Msg
}
type Parser struct {
	l *lexer.Lexer
	curToken  lexer.Token
	peekToken lexer.Token
	elements []*html.Node
	errors []Error
}