Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Enumeration Member in
The compiler will derive only the variable and function declarations, and file tags, found in the script.
DeclarationsOnlyStruct 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.
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 .
library
The containing functions to use for this compilation.
Field in
The that contains declarations for functions.
Field in
The source code of this file.
public Library Library;public string Source;Field in
The declarations for variables.
public IEnumerable<Declaration> VariableDeclarations;Enumeration Member in
The compiler will generate a string table only.
StringsOnlyField 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.
public string FileName;Enum in CompilationJob
Inherits from System.Enum
The type of compilation that the compiler will do.
public enum Type
{
FullCompilation,
DeclarationsOnly,
StringsOnly
}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.
Method in
Creates a new using the contents of a collection of files.
A new .
string[] paths
The paths to the files.
public static CompilationJob CreateFromFiles(params string[] paths)Field in
The type of compilation to perform.
public Type CompilationType;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 .
string source
The text to compile.
library
Library of function definitions to use during compilation.
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.
Field in
The structs that represent the content to parse..
public IEnumerable<File> Files;