ParseState
wraps a Location
and provides some extra
convenience functions.
ParseState
wraps a Location
and provides some extra
convenience functions. The sliceable parsers defined
in Sliceable.scala
add an isSliced
Boolean
flag
to ParseState
.
A parser is a kind of state action that can fail.
Returns -1 if s1.startsWith(s2), otherwise returns the first index where the two strings differed.
Returns -1 if s1.startsWith(s2), otherwise returns the first index where the two strings differed. If s2 is longer than s1, returns s1.length.