diff --git a/src_v2/parser/parser_types.nim b/src_v2/parser/parser_types.nim index a2f322d..dd6974a 100644 --- a/src_v2/parser/parser_types.nim +++ b/src_v2/parser/parser_types.nim @@ -67,8 +67,18 @@ func initParser*( tokens: tokens, ) -func initParserResult*(str: string): ParserResult = - ParserResult.ok(initParser(str)) +func initParserResult*( + stream: string, + tokens = newSeq[ParserToken](), + position = -1, + lastPosition = 0, +): ParserResult = + ParserResult.ok(initParser( + stream, + tokens, + position, + lastPosition, + )) # -- Getters