Creates a marker that indicates the start or end of a text block.
Creates a marker that indicates the start or end of a text block.
a marker that is placed where a line and its number in the parsed text satisfy the lineAndLineNrPredicate
Creates a marker that indicates the start or end of a text block.
Creates a marker that indicates the start or end of a text block.
if a line in the parsed text satisfies this predicate we set a marker at the position of the line
a marker that is placed where a line in the parsed text satisfies the linePredicate
Creates a marker that indicates the start or end of a text block.
Creates a marker that indicates the start or end of a text block.
if this string is equal to a line in the parsed text, we set a marker at the position of the line
a marker that is placed where the string in line
matches the line in the parsed text
When a line within the parsed text matches the
predicate
, we set a eu.matthiasbraun.sparse.Parser.BlockMarker after that line. This marker may either indicate the start or end of a eu.matthiasbraun.sparse.Parser.TextBlock. Example usage:parse(source, after("line before start"), to("end line"))
parse(source, from("start line), after(_.startsWith("prefix of line before end")))
parse(source, after((line, lineNr) => line == "line before start" && lineNr > 10), to("end line"))