Yarn.Compiler Namespace

Summary

Contains classes for compiling Yarn code.

Classes

Name
Description

A basic block is a run of instructions inside a Node. Basic blocks group instructions up into segments such that execution only ever begins at the start of a block (that is, a program never jumps into the middle of a block), and execution only ever leaves at the end of a block.

The result of a compilation.

Compiles Yarn code.

Represents a variable declaration

Provides methods for constructing Declaration objects.

A diagnostic message that describes an error, warning or informational message that the user can take action on.

Provides methods for constructing EnumType objects.

Provides methods for constructing FunctionType objects.

A Lexer subclass that detects newlines and generates indent and dedent tokens accordingly.

Contains extension methods for producing BasicBlock objects from a Node.

Contains debug information for a node in a Yarn file.

Represents a position in a multi-line string.

Yarn Projects represent instructions on where to find Yarn scripts and associated assets, and how they should be compiled.

Represents a range of text in a multi-line string.

Contains methods for parsing structured commands.

Utility methods for working with line tags.

Interfaces

Name
Description

Contains properties common to all parse nodes that have a type associated with them.

Namespaces

Name
Description

Contains classes for upgrading Yarn code to more recent versions of the language.

Structs

Name
Description

An object that contains Yarn source code to compile, and instructions on how to compile it.

Contains the result of parsing a single file of source code.

Information about a string. Stored inside a string table, which is produced from the Compiler.

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.