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