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)


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.


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


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