Documentation ¶
Index ¶
Constants ¶
View Source
const ( LOWEST int = iota + 1 AND OR REGEX EQUALS LESS_GREATER CONCAT PREFIX CALL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseError ¶
func MissingSemicolon ¶
func MissingSemicolon(m *ast.Meta) *ParseError
func TypeConversionError ¶
func TypeConversionError(m *ast.Meta, tt string) *ParseError
func UndefinedPrefix ¶
func UndefinedPrefix(m *ast.Meta) *ParseError
func UnexpectedToken ¶
func UnexpectedToken(m *ast.Meta, expects ...string) *ParseError
func (*ParseError) Error ¶
func (e *ParseError) Error() string
func (*ParseError) ErrorToken ¶
func (e *ParseError) ErrorToken() token.Token
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseExpression ¶ added in v1.0.0
func (p *Parser) ParseExpression(precedence int) (ast.Expression, error)
Expose global function to be called externally
func (*Parser) ParseSnippetVCL ¶ added in v0.9.3
ParseSnippetVCL is used for snippet parsing. VCL snippet is a piece of vcl code so we should parse like BlockStatement inside, and returns slice of statement.
Click to show internal directories.
Click to hide internal directories.