Companion

object Companion

Functions

Link copied to clipboard
fun addDeclaration(declaration: A_Phrase): A_Phrase?

Attempt to add the declaration to the compiler scope information within the client data stored in the current fiber. If there is already a declaration by that name, return it; otherwise return null.

Link copied to clipboard
fun createFiber(    resultType: A_Type,     runtime: AvailRuntime,     loader: AvailLoader?,     textInterface: TextInterface,     priority: Int,     setup: A_Fiber.() -> Unit = { },     nameSupplier: () -> A_String): A_Fiber

Construct an unstartedfiber with the specified result type, name supplier, and AvailLoader. The priority is initially set to loaderPriority.

Link copied to clipboard
fun currentFiber(): A_Fiber

Answer the fiber currently bound to the current Interpreter.

Link copied to clipboard
fun lookupBindingOrNull(name: A_String): A_Phrase?

Look up the declaration with the given name in the current compiler scope. This information is associated with the current Interpreter, and therefore the fiber that it is executing. If no such binding exists, answer null. The module scope is not consulted by this mechanism.

Link copied to clipboard
fun newFiber(    resultType: A_Type,     runtime: AvailRuntime,     textInterface: TextInterface,     priority: Int,     setup: A_Fiber.() -> Unit = { },     nameSupplier: () -> A_String): A_Fiber

Construct an unstartedfiber with the specified result type and initial priority.

Link copied to clipboard
fun newLoaderFiber(    resultType: A_Type,     loader: AvailLoader,     nameSupplier: () -> A_String): A_Fiber

Construct an unstartedfiber with the specified result type and AvailLoader. The priority is initially set to loaderPriority.

Link copied to clipboard
fun newStylerFiber(loader: AvailLoader, nameSupplier: () -> A_String): A_Fiber

Construct an unstartedfiber with the specified AvailLoader, for the purpose of styling tokens and phrases. Such a fiber is the only place that styling is allowed. Fibers launched from this fiber also allow styling, but they should be joined by this fiber to ensure they are not making changes after styling is supposed to have completed. The priority is initially set to loaderPriority.

Properties

Link copied to clipboard
const val bulkL2InvalidationPriority: Int = 90

The priority for invalidating expired L2 chunks in bulk.

Link copied to clipboard
const val commandPriority: Int = 50

The priority of command execution tasks.

Link copied to clipboard
const val compilerPriority: Int = 50

The priority of compilation tasks.

Link copied to clipboard
const val debuggerPriority: Int = 80

The priority for debugger operations.

Link copied to clipboard
const val loaderPriority: Int = 50

The priority of loading tasks.

Link copied to clipboard
const val stringificationPriority: Int = 50

The priority of stringifying objects.

Link copied to clipboard
const val tracerPriority: Int = 50

The priority of module tracing tasks.