Yarn.Compiler Namespace

Summary

Contains classes for compiling Yarn code.

Classes

NameDescription
CompilationResultThe result of a compilation.
CompilerCompiles Yarn code.
DeclarationRepresents a variable declaration
DeclarationBuilderProvides methods for constructing Declaration objects.
DiagnosticA diagnostic message that describes an error, warning or informational message that the user can take action on.
EnumTypeBuilderProvides methods for constructing EnumType objects.
FunctionTypeBuilderProvides methods for constructing FunctionType objects.
IndentAwareLexerA Lexer subclass that detects newlines and generates indent and dedent tokens accordingly.
NodeDebugInfoContains debug information for a node in a Yarn file.
ParserRuleContextExtensionContains extension methods for Antlr4.Runtime.ParserRuleContext objects.
PositionRepresents a position in a multi-line string.
ProjectYarn Projects represent instructions on where to find Yarn scripts and associated assets, and how they should be compiled.
ProjectDebugInfoContains debugging information for compiled Yarn Projects.
RangeRepresents a range of text in a multi-line string.
UtilityUtility methods for working with line tags.

Interfaces

NameDescription
ISourceInputAn input into a Yarn Spinner compilation.

Namespaces

NameDescription
Yarn.Compiler.UpgraderContains classes for upgrading Yarn code to more recent versions of the language.

Structs

NameDescription
CompilationJobAn object that contains Yarn source code to compile, and instructions on how to compile it.
FileParseResultContains the result of parsing a single file of source code.
StringInfoInformation about a string. Stored inside a string table, which is produced from the Compiler.