Rename: parser to parser internals

This commit is contained in:
Florian Schroedl
2022-01-20 17:00:00 +01:00
parent 1aa07d943a
commit 9bb0f8e38c
3 changed files with 3 additions and 2 deletions

View File

@@ -83,6 +83,7 @@ func str*(s: string): (Parser -> ParserResult) {.inline.} =
p = p.flatMap(ch(c))
return p
proc endOfStream*(parser: Parser): ParserResult =
let index = parser.state.position + 1
if index == parser.state.stream.len: