cadenza / cadenza / Language

Language

class Language : TruffleLanguage<Context>

Types

Context

class Context

Detector

class Detector : FileTypeDetector

Constructors

<init>

Language()

Functions

areOptionsCompatible

fun areOptionsCompatible(a: OptionValues?, b: OptionValues?): Boolean

binary

fun binary(f: (x: Term, y: Term) -> Term, tx: Type, ty: Type): Code

createContext

fun createContext(env: Env): Context

disposeThread

fun disposeThread(ctx: Context, thread: Thread?): Unit

finalizeContext

fun finalizeContext(ctx: Context): Unit

findExportedSymbol

fun findExportedSymbol(context: Context, globalName: String, onlyExplicit: Boolean): Any?

findMetaObject

fun findMetaObject(ctx: Context, value: Any?): Any

findSourceLocation

fun findSourceLocation(ctx: Context, value: Any?): SourceSection?

getOptionDescriptors

fun getOptionDescriptors(): OptionDescriptors?

initializeContext

fun initializeContext(ctx: Context?): Unit

initializeMultipleContexts

fun initializeMultipleContexts(): Unit

initializeMultiThreading

fun initializeMultiThreading(ctx: Context): Unit

initializeThread

fun initializeThread(ctx: Context, thread: Thread?): Unit

isObjectOfLanguage

fun isObjectOfLanguage(obj: Any): Boolean

isThreadAccessAllowed

fun isThreadAccessAllowed(thread: Thread, singleThreaded: Boolean): Boolean

isVisible

fun isVisible(ctx: Context, value: Any?): Boolean

parse

fun parse(request: InlineParsingRequest?): InlineCode
fun parse(request: ParsingRequest): CallTarget

patchContext

fun patchContext(ctx: Context, env: Env): Boolean

toString

fun toString(ctx: Context, value: Any?): String

unary

fun unary(f: (x: Term) -> Term, argument: Type): Code