diff --git a/src_v2/parser/builder_types.nim b/src_v2/parser/builder_types.nim new file mode 100644 index 0000000..208e72b --- /dev/null +++ b/src_v2/parser/builder_types.nim @@ -0,0 +1,16 @@ +import fp/[ + resultM, +] +import ./parser_types + +type + Builder*[T] = tuple[ + parser: Parser, + tree: seq[T] + ] + builderErrorKind* = enum + parserError + BuilderError*[T] = ref object + kind*: builderErrorKind + builder*: Builder[T] + BuilderResult*[T] = Result[Builder[T], BuilderError[T]]