Package ast

Types

Link copied to clipboard
class Block(val statements: Array<Statement>) : Statement

A block statement with its own scope.

Link copied to clipboard
class EOF : Statement

Represents the final statement in a file.

Link copied to clipboard
interface Expression

An expression that evaluates to a value.

Link copied to clipboard
class Identifier(val path: Array<String>, val namespace: String?)

Represents an identifier for an object.

Link copied to clipboard
class IfStatement(    val condition: Expression,     val body: Block,     val elseBody: Block?) : Statement

A conditional statement

Link copied to clipboard
interface Statement

A statement that can be executed, but cannot evaluate to a value.

Link copied to clipboard
class TryCatch(    val tryBlock: Block,     val name: Identifier,     val type: Identifier,     val catchBlock: Block) : Statement

Try to execute tryBlock, but execute catchBlock as soon as an exception of type type is raised.

Link copied to clipboard
interface Type

Base class for the data types that can be used.