Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Struct in Yarn.Compiler
Inherits from System.ValueType
An object that contains Yarn source code to compile, and instructions on how to compile it.
public struct CompilationJobInstances of this struct are used with Compile(CompilationJob) to produce CompilationResult objects.
The type of compilation that the compiler will do.
The type of compilation to perform.
The structs that represent the content to parse..
Creates a new using the contents of a collection of files.
Creates a new using the contents of a collection of files.
Represents the contents of a file to compile.
The that contains declarations for functions.
The declarations for variables.
Creates a new using the contents of a string.
Field in
The type of compilation to perform.
public Type CompilationType;Field in
The structs that represent the content to parse..
public IEnumerable<File> Files;Enumeration Member in
The compiler will do a full compilation, and generate a , function declaration set, and string table.
Enumeration Member in
The compiler will generate a string table only.
FullCompilationStringsOnlyField in CompilationJob
The Library that contains declarations for functions.
public Library Library;Method in CompilationJob
Creates a new CompilationJob using the contents of a collection of files.
public static CompilationJob CreateFromFiles(IEnumerable<string> paths, Library library = null)System.Collections.Generic.IEnumerable<string> paths
The paths to the files.
A new .
Method in CompilationJob
Creates a new CompilationJob using the contents of a string.
public static CompilationJob CreateFromString(string fileName, string source, Library library = null)string fileName
The name to assign to the compiled file.
A new .
Method in CompilationJob
Creates a new CompilationJob using the contents of a collection of files.
public static CompilationJob CreateFromFiles(params string[] paths)string[] paths
The paths to the files.
A new .
Enum in
Inherits from System.Enum
The type of compilation that the compiler will do.
Field in
The declarations for variables.
Field in
The source code of this file.
Field in
The name of the file.
This may be a full path, or just the filename or anything in between. This is useful for diagnostics, and for attributing objects to their original source files.
Yarn.Library library
The Library containing functions to use for this compilation.
string source
The text to compile.
Yarn.Library library
public IEnumerable<Declaration> VariableDeclarations;public string Source;public string FileName;The compiler will derive only the variable and function declarations, and file tags, found in the script.
The compiler will do a full compilation, and generate a , function declaration set, and string table.
The compiler will generate a string table only.
public enum Type
{
FullCompilation,
DeclarationsOnly,
StringsOnly
}Struct in CompilationJob
Inherits from System.ValueType
Represents the contents of a file to compile.
public struct FileThe name of the file.
The source code of this file.
Enumeration Member in
The compiler will derive only the variable and function declarations, and file tags, found in the script.
DeclarationsOnly