Versions in this module Expand all Collapse all v0 v0.1.12 Nov 5, 2024 v0.1.11 Nov 3, 2024 Changes in this version + 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 struct + Idx int + Operation string + Reason error + func (e ErrTestFailed) Error() string + type LexerArg struct + Expecteds []string + InputStr string + func NewLexerArg(input_str string, expecteds ...string) LexerArg + type ParserArgs struct + Expecteds []string + Tokens []*slgr.Token + func NewParserArgs(tokens []*slgr.Token, expecteds ...string) ParserArgs