Rename to match rest

This commit is contained in:
Florian Schroedl
2022-08-26 16:45:00 +02:00
parent d873288680
commit e6fff0165e

View File

@@ -106,10 +106,10 @@ proc str*(expectedString: string): parserFnT {.inline.} =
## Creates parser function with `expectedString`
## When the parser has the string at the following index return `ParserResult.ok`
return proc(parser: Parser): ParserResult =
var p = parser.ok()
var res = parser.ok()
for c in expectedString.items:
p = p.flatMap(ch(c))
return p
res = res.flatMap(ch(c))
return res
# -- Parsing API