Versions in this module Expand all Collapse all v0 v0.2.9 Sep 13, 2023 v0.2.8 Sep 13, 2023 v0.2.7 Aug 5, 2023 v0.2.6 Jul 24, 2023 Changes in this version + const ADD_EQ + const DIV_EQ + const MOD_EQ + const MUL_EQ + const NOT + const SUB_EQ + const UMINUS v0.2.5 Jun 25, 2023 v0.2.4 Jun 20, 2023 v0.2.3 Dec 28, 2022 v0.2.2 Dec 23, 2022 v0.2.1 Dec 22, 2022 v0.2.0 Dec 16, 2022 Changes in this version + const ADD + const AND + const BOOL + const BREAK + const COLON + const COMMA + const COMMENT + const CONTINUE + const DIV + const DOT + const Digits + const ELIF + const ELSE + const EOF + const EOL + const EQ + const EQEQ + const ERROR + const FALSE + const FLOAT + const FOR + const GT + const GTE + const HexDigits + const ID + const IDENTIFIER + const IF + const IN + const INT + const LEFT_BRACE + const LEFT_BRACKET + const LEFT_PAREN + const LIST + const LT + const LTE + const MAP + const MOD + const MUL + const MULTILINE_STRING + const NEQ + const NIL + const NULL + const NUMBER + const OR + const QUOTED_STRING + const RETURN + const RIGHT_BRACE + const RIGHT_BRACKET + const RIGHT_PAREN + const SEMICOLON + const SPACE + const START_STMTS + const STR + const STRING + const SUB + const TRUE + const WHILE + var AstOp = func(op ItemType) ast.Op + var ErrSyntax = errors.New("invalid syntax") + var ItemTypeStr = map[ItemType]string + func InitLog(logger logger.Logger) + func ParsePipeline(input string) (res ast.Stmts, err error) + func Unquote(s string) (t string, err error) + func UnquoteMultiline(s string) (t string, err error) + type Item struct + Pos token.Pos + Typ ItemType + Val string + func (i *Item) PositionRange() *PositionRange + func (i Item) String() string + type ItemType int + func (i ItemType) IsKeyword() bool + func (i ItemType) IsOperator() bool + func (i ItemType) String() string + type Lexer struct + func Lex(input string) *Lexer + func (l *Lexer) NextItem(itemp *Item) + type ParseError struct + Err error + Pos *PositionRange + Query string + func (e *ParseError) Error() string + type ParseErrors []ParseError + func (errs ParseErrors) Error() string + type PositionRange struct + End token.Pos + Start token.Pos + func (pos PositionRange) String() string