Commentary

This commit is contained in:
Florian Schroedl
2022-05-04 17:00:00 +02:00
parent f41534ab1a
commit bec4953a97

View File

@@ -17,7 +17,7 @@ proc tryParseBuild*[T](
stopAtParserFn = newline,
concatFn = concat[T],
): BuilderResult[T] =
## Parse remaining text in `builder` by going checking in the `builderFns` list for a sucessful `parserFn`.
## Parse text in `builder` by checking the `builderFns` list for a sucessful `parserFn`.
## The `ok` `parserFn` result will be merged into the `Builder[T].tree` by using the `concatFn`.
## Otherwise continue taking any character until the `stopAtParserFn` condition is found.
## Any non-matching tokens will be converted using the `defaultBuilderFn`.