ParseNode constructor

  1. String input,
  2. int index,
  3. FileInfo fileInfo

Constructor to partial parse, where input is the string to parse, index start number to begin indexing and fileInfo the file Info to attach to created nodes. We could ignoreErrors.

Usage example:

new ParseNode(input, index, fileInfo).value();

result[0] has the result if isError == false


ParseNode(String input, this.index, this.fileInfo) {
  index ??= 0;
  fileInfo ??= FileInfo();
  parsers = Parsers(input, Contexts());