ParseSource(string)

Method in Utility

Summary

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)

Parameters

NameDescription

string source

The source code to parse.

Returns

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.

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.