ParseSource(string)
Parses a string of Yarn source code, and produces a FileParseResult and (if there were any problems) a collection of diagnostics.
public static (FileParseResult, IEnumerable<Diagnostic>) ParseSource(string source)
Name | Description |
---|---|
string source | The source code to parse. |
A tuple containing a FileParseResult that stores the parse tree and tokens, and a collection of Diagnostic objects that describe problems in the source code.