Document and test parser type internals
This commit is contained in:
@@ -189,7 +189,7 @@ proc anyUntil*(stopFn: parserFnT): parserFnT {.inline.} =
|
||||
manyUntil(anyCh, stopFn)
|
||||
|
||||
proc choice*(parserFns: seq[parserFnT]): parserFnT {.inline} =
|
||||
## Creates parser function that checks any of the `parserFns`.
|
||||
## creates parser function that checks any of the `parserFns`.
|
||||
## Needs one match for a `ParserResult.ok`.
|
||||
return proc(parser: Parser): ParserResult {.closure.} =
|
||||
var errors: seq[ParserResult] = newSeq[ParserResult]()
|
||||
|
||||
Reference in New Issue
Block a user