A lightweight and fast parsing library for C#.
ITokenStream
s and ParseState
s have been made public as originally intended. Thanks @katherinefluxinc!Try()
which had been broken in 3.2.0.
ManyThen
, AtLeastOnceThen
, SkipManyThen
, and SkipAtLeastOnceThen
Until
, AtLeastOnceUntil
, SkipUntil
, and SkipAtLeastOnceUntil
which return the terminator.ExpressionParser
, now including an example.
TokenStream
API. You can now write parsers which consume custom input streams.ResumableTokenStream
class.Parser
.Parser.Real
is now a property and not a method.posCalculator
now returns a SourcePosDelta
struct representing the amount of text covered by a token, rather than updating the current source position in place.
Parse
methods in ParseExtensions
now take an IConfiguration
object as an optional parameter (instead of a posCalculator
func).
posCalculator
, you can instead subclass DefaultConfiguration
and override the PosCalculator
property.Span
-based implementation.SkipWhitespaces
.