Rename to match rest
This commit is contained in:
@@ -106,10 +106,10 @@ proc str*(expectedString: string): parserFnT {.inline.} =
|
|||||||
## Creates parser function with `expectedString`
|
## Creates parser function with `expectedString`
|
||||||
## When the parser has the string at the following index return `ParserResult.ok`
|
## When the parser has the string at the following index return `ParserResult.ok`
|
||||||
return proc(parser: Parser): ParserResult =
|
return proc(parser: Parser): ParserResult =
|
||||||
var p = parser.ok()
|
var res = parser.ok()
|
||||||
for c in expectedString.items:
|
for c in expectedString.items:
|
||||||
p = p.flatMap(ch(c))
|
res = res.flatMap(ch(c))
|
||||||
return p
|
return res
|
||||||
|
|
||||||
# -- Parsing API
|
# -- Parsing API
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user