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