ParseNode constructor

ParseNode(String input, int index, 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

Implementation

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