This site is for Yarn Spinner v1, and won't be updated. Go to the current site.

Compiler.CompileString Method

Generates a program and a derived string table from the contents of a string.

public static Status CompileString(string text, string fileName, out Program program, out IDictionary<string, StringInfo> stringTable)

Parameters

Parameter Description
string text The source code of the program.
string fileName The file name to assign to the compiled results.
Program program On return, contains the compiled program.
StringInfo} stringTable On return, contains the string table generated from the source code.

Return Type

Status: The status of the compilation.

Exceptions

Exception Description
ParseException Thrown when a parse error occurs during compilation.

Source

Defined in YarnSpinner.Compiler/Compiler.cs, line 192.