Set a custom description for the given parser.
Set a custom description for the given parser. This will show up in "Expected X, but got Y" error messages instead of the token list generated by default.
Matches at the end of file.
Matches at the end of file. Using this rule instead of token(EOF) prevents an empty string from being added
to the completions list.
This rule matches a token if the given function is defined for that function.
This rule matches a token if the given function is defined for that function. If so the result is a Success whose value is the
return value of the function. Otherwise the rule fails.
This rule matches a token if the given function is defined for that function.
This rule matches a token if the given function is defined for that function. If so the result is a Success whose value is the
return value of the function. Otherwise the rule fails.
Matches one or more occurrences of rep separated by sep and produces a list of the results if successful.
Matches one or more occurrences of rep separated by sep and produces a list of the results if successful.
Matches zero or more occurrences of rep separated by sep and produces a list of the results.
Matches zero or more occurrences of rep separated by sep and produces a list of the results.
Succeeds unconditionally and without consuming tokens.
Succeeds unconditionally and without consuming tokens. The resulitng Success object will contain
result as its result value.
This rule matches the given token and fails on any other token.
This rule matches the given token and fails on any other token.