📄️ endOfInput
Checks if there is nothing left to parse otherwise it fails.
📄️ endOfLine
Tries to match an end of line (either \r\n, \r or \n)
📄️ failure
Always returns a failing parser with the given errorMessage. Typically used inside a contextual parser.
📄️ lazy
Takes a function that just returns a parser (a thunk). This defers the evaluation of the given parser. Useful for writing recursive parsers.
📄️ number
Tries to match a given number.
📄️ regex
Tries to match a given regex.
📄️ string
Tries to match a given string.
📄️ whitespace
Tries to match one or more whitespaces (regex: /[\r\n\t\f\v ]+/).
📄️ word
Tries to match one or more words (regex: /[a-zA-Z0-9_]+/).