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