Versions in this module Expand all Collapse all v1 v1.1.0 Jun 14, 2022 Changes in this version type LitType + const DurationLit v1.0.0 Feb 12, 2022 Changes in this version + type Array struct + Items []Node + func (n Array) Err(msg string) error + func (n Array) Pos() Pos + type AssignStmt struct + Left Node + Right Node + func (n AssignStmt) Err(msg string) error + func (n AssignStmt) Pos() Pos + type BlockStmt struct + Nodes []Node + func (n BlockStmt) Err(msg string) error + func (n BlockStmt) Pos() Pos + type BranchStmt struct + Tok token + func (n BranchStmt) Err(msg string) error + func (n BranchStmt) Pos() Pos + type CaseStmt struct + Then Node + Value Node + func (n CaseStmt) Err(msg string) error + func (n CaseStmt) Pos() Pos + type ChainExpr struct + Commands []*CommandStmt + func (n ChainExpr) Err(msg string) error + func (n ChainExpr) Pos() Pos + type CommandStmt struct + Args []Node + Name *Name + func (n CommandStmt) Err(msg string) error + func (n CommandStmt) Pos() Pos + type DotExpr struct + Left Node + Right Node + func (n DotExpr) Err(msg string) error + func (n DotExpr) Pos() Pos + type ExprList struct + Nodes []Node + func (n ExprList) Err(msg string) error + func (n ExprList) Pos() Pos + type ForStmt struct + Body *BlockStmt + Cond Node + Init Node + Post Node + func (n ForStmt) Err(msg string) error + func (n ForStmt) Pos() Pos + type IfStmt struct + Cond Node + Else Node + Then Node + func (n IfStmt) Err(msg string) error + func (n IfStmt) Pos() Pos + type IndExpr struct + Left Node + Right Node + func (n IndExpr) Err(msg string) error + func (n IndExpr) Pos() Pos + type KeyExpr struct + Key *Name + Value Node + func (n KeyExpr) Err(msg string) error + func (n KeyExpr) Pos() Pos + type Lit struct + Type LitType + Value string + func (n Lit) Err(msg string) error + func (n Lit) Pos() Pos + type LitType uint + const BoolLit + const FloatLit + const IntLit + const StringLit + func (i LitType) String() string + type MatchStmt struct + Cases []*CaseStmt + Cond Node + Default Node + func (n MatchStmt) Err(msg string) error + func (n MatchStmt) Pos() Pos + type Name struct + Value string + func (n Name) Err(msg string) error + func (n Name) Pos() Pos + type Node interface + Err func(msg string) error + Pos func() Pos + func Parse(name string, r io.Reader, errh func(Pos, string)) ([]Node, error) + func ParseExpr(s string) ([]Node, error) + func ParseFile(fname string, errh func(Pos, string)) ([]Node, error) + func ParseRef(s string) (Node, error) + type Object struct + Pairs []*KeyExpr + func (n Object) Err(msg string) error + func (n Object) Pos() Pos + type Op uint + const AndOp + const EqOp + const GeqOp + const GtOp + const InOp + const LeqOp + const LtOp + const NeqOp + const OrOp + func (i Op) String() string + type Operation struct + Left Node + Op Op + Right Node + func (n Operation) Err(msg string) error + func (n Operation) Pos() Pos + type Pos struct + Col int + File string + Line int + func (p Pos) Err(msg string) error + func (p Pos) String() string + type Range struct + Left Node + Right Node + func (n Range) Err(msg string) error + func (n Range) Pos() Pos + type Ref struct + Left Node + func (n Ref) Err(msg string) error + func (n Ref) Pos() Pos