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 at that line. This marker indicates the end of a eu.matthiasbraun.sparse.Parser.TextBlock. Example usage:parse(source, from("start line"), to("end line"))
parse(source, from(_.endsWith("start line suffix")), to(_.startsWith("end line prefix")))
parse(source, from("start line), to((line, lineNr) => line == "end line" && lineNr > 10 ))