Commentary
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user