Documentation
¶
Index ¶
- func AddErr(errs *[]error, idx int, operation string, reason error) error
- func CheckTokens(tokens []*slgr.Token, expecteds ...string) error
- func LexerTest(lexer *sllx.Lexer, idx int, arg LexerArg) error
- func LinkTokens(tokens []*slgr.Token) []*slgr.Token
- func NewErrTestFailed(idx int, operation string, reason error) error
- func ParserTest(parser slpx.Parser, arg ParserArgs) error
- type ErrTestFailed
- type LexerArg
- type ParserArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParserTest ¶
func ParserTest(parser slpx.Parser, arg ParserArgs) error
Types ¶
type ErrTestFailed ¶
func (ErrTestFailed) Error ¶
func (e ErrTestFailed) Error() string
type LexerArg ¶
func NewLexerArg ¶
type ParserArgs ¶
func NewParserArgs ¶
func NewParserArgs(tokens []*slgr.Token, expecteds ...string) ParserArgs
Click to show internal directories.
Click to hide internal directories.