Commentary
This commit is contained in:
@@ -17,7 +17,7 @@ proc tryParseBuild*[T](
|
|||||||
stopAtParserFn = newline,
|
stopAtParserFn = newline,
|
||||||
concatFn = concat[T],
|
concatFn = concat[T],
|
||||||
): BuilderResult[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`.
|
## 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.
|
## Otherwise continue taking any character until the `stopAtParserFn` condition is found.
|
||||||
## Any non-matching tokens will be converted using the `defaultBuilderFn`.
|
## Any non-matching tokens will be converted using the `defaultBuilderFn`.
|
||||||
|
|||||||
Reference in New Issue
Block a user