Versions in this module Expand all Collapse all v1 v1.13.12 Feb 9, 2025 Changes in this version + var ErrIncompleteStringExpectBacktick = errors.New("incomplete string, expect ` or |") + var ErrIncompleteStringExpectQuot = errors.New("incomplete string, expect \"") + var ErrIncompleteStringExpectSquot = errors.New("incomplete string, expect '") + var ErrInvalidEscapeChar = errors.New("invalid escape char") + var ErrUnsupportedFeatureMultiCmds = errors.New("unsupported feature: multi commands") + var ErrUnsupportedFeatureSubCmd = errors.New("unsupported feature: sub command") + func Find(str string, typeMask uint32) (n int) + func Skip(str string, typeMask uint32) string + type Parser struct + Escape func(c byte) string + ExecSub func(code string) (string, error) + func NewParser() *Parser + func (p *Parser) ParseCmd(cmdline string) (cmd []string, err error) + func (p *Parser) ParseCode(code string) (cmd []string, codeNext string, err error)