Versions in this module Expand all Collapse all v1 v1.2.4 Jun 5, 2018 Changes in this version + func Errorf(loc Locatable, format string, a ...interface{}) *sourceLocError + type ASTBlock struct + Body []ASTNode + Clauses []*ASTBlock + type ASTNode interface + SourceLocation func() SourceLoc + SourceText func() string + type ASTObject struct + Expr expressions.Expression + type ASTRaw struct + Slices []string + func (n *ASTRaw) SourceLocation() SourceLoc + func (n *ASTRaw) SourceText() string + type ASTSeq struct + Children []ASTNode + func (n *ASTSeq) SourceLocation() SourceLoc + func (n *ASTSeq) SourceText() string + type ASTTag struct + type ASTText struct + type BlockSyntax interface + CanHaveParent func(BlockSyntax) bool + IsBlock func() bool + IsBlockEnd func() bool + IsBlockStart func() bool + IsClause func() bool + ParentTags func() []string + RequiresParent func() bool + TagName func() string + type Config struct + Delims []string + Grammar Grammar + func NewConfig(g Grammar) Config + func (c Config) Parse(source string, loc SourceLoc) (ASTNode, Error) + type Error interface + Cause func() error + LineNumber func() int + Path func() string + func WrapError(err error, loc Locatable) Error + type Grammar interface + BlockSyntax func(string) (BlockSyntax, bool) + type Locatable interface + SourceLocation func() SourceLoc + SourceText func() string + type SourceLoc struct + LineNo int + Pathname string + func (s SourceLoc) IsZero() bool + func (s SourceLoc) String() string + type Token struct + Args string + Name string + Source string + SourceLoc SourceLoc + TrimLeft bool + TrimRight bool + Type TokenType + func Scan(data string, loc SourceLoc, delims []string) (tokens []Token) + func (c Token) SourceLocation() SourceLoc + func (c Token) SourceText() string + func (c Token) String() string + type TokenType int + const ObjTokenType + const TagTokenType + const TextTokenType + func (i TokenType) String() string