Versions in this module Expand all Collapse all v1 v1.6.0 Oct 21, 2022 v1.5.0 Jan 11, 2022 v1.4.0 Dec 10, 2021 v1.3.0 Sep 16, 2021 v1.2.0 Jun 21, 2021 v1.1.0 Apr 8, 2021 v1.0.0 Jan 15, 2021 v0 v0.12.0 Sep 3, 2020 v0.11.0 Jul 24, 2020 Changes in this version + const BASICLIT + const BOOL + const COMMA + const COMMENT + const EOF + const FLOAT + const IDENT + const ILLEGAL + const IMAG + const INT + const LAND + const LOR + const LPAREN + const NOT + const RPAREN + const SEMICOLON + const STRING + func Inspect(node Node, f func(Node) bool) + func Parse(condStr string) (Node, []*Ident, error) + func Walk(v Visitor, node Node) + type BasicLit struct + Kind Token + Value string + ValuePos token.Pos + func (b *BasicLit) End() token.Pos + func (b *BasicLit) Pos() token.Pos + func (b *BasicLit) ToBool() bool + type BasicLitList []*BasicLit + func (b BasicLitList) End() token.Pos + func (b BasicLitList) Pos() token.Pos + type BinaryExpr struct + Op Token + X Expr + Y Expr + func (b *BinaryExpr) End() token.Pos + func (b *BinaryExpr) Pos() token.Pos + type CallExpr struct + Args BasicLitList + Fun *Ident + Rparen token.Pos + func (c *CallExpr) End() token.Pos + func (c *CallExpr) Pos() token.Pos + func (c CallExpr) String() string + type Error struct + func (e Error) Error() string + type ErrorHandler func(pos token.Pos, msg string) + type Expr interface + type Ident struct + Name string + NamePos token.Pos + func (id *Ident) End() token.Pos + func (id *Ident) Pos() token.Pos + type Node interface + End func() token.Pos + Pos func() token.Pos + type ParenExpr struct + X Expr + func (p ParenExpr) End() token.Pos + func (p ParenExpr) Pos() token.Pos + type Parser struct + func (p *Parser) Error() error + func (p *Parser) Init(src []byte) + func (p *Parser) Parse() + func (p Parser) String() string + type Scanner struct + ErrorCount int + func (s *Scanner) Init(file *token.File, src []byte, err ErrorHandler) + func (s *Scanner) Scan() (pos token.Pos, tok Token, lit string) + type Token int + func Lookup(ident string) Token + func (t Token) String() string + func (t Token) Symbol() string + type UnaryExpr struct + Op Token + OpPos token.Pos + X Expr + func (u *UnaryExpr) End() token.Pos + func (u *UnaryExpr) Pos() token.Pos + type Visitor interface + Visit func(node Node) (w Visitor)