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

@@ -1,7 +1,7 @@
import results
import fusion/matching
import ../utils/fp
import ../parser/parser
import ../parser/parser_internals
import ../parser/parser_types
{.experimental: "caseStmtMacros".}

View File

@@ -6,7 +6,7 @@ import results
import utils/fp
import fusion/matching
import ./parser/parser
import ./parser/parser_internals
import ./parser/parser_types
import ./parser/utils
import ./org/org_properties_block

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: