Move parserFnT
This commit is contained in:
@@ -12,10 +12,6 @@ import fp/[
|
||||
import ../utils/str
|
||||
import ./parser_types
|
||||
|
||||
# -- Types
|
||||
|
||||
type parserFnT = proc(t0: Parser): ParserResult
|
||||
|
||||
# -- Utilities
|
||||
|
||||
proc isStreamCompleted*(parser: Parser): bool =
|
||||
|
||||
@@ -44,6 +44,8 @@ type
|
||||
parser*: Parser
|
||||
ParserResult* = Result[Parser, ParserError]
|
||||
|
||||
type parserFnT* = proc(t0: Parser): ParserResult
|
||||
|
||||
# -- Initalizers
|
||||
|
||||
func initParserToken*(x: char): ParserToken =
|
||||
|
||||
Reference in New Issue
Block a user