Rename: parser to parser internals
This commit is contained in:
@@ -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".}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user