Compiler.CompileFile Method

Reads the contents of a file at a given path, and generates a program and a derived string table from its contents.

public static Status CompileFile(string path, out Program program, out IDictionary<string, StringInfo> stringTable)

Parameters

Parameter Description
string path The path to the file containing the program.
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 165.