Callisto.Compiler
(in ./Carbon/Callisto/Compiler.lua)
The pure compiler API for Callisto.
Methods
class public Compiler.LoadString(string source, [table sourcemap, string chunkname, table environment]
)
Returns function
- required
source
: The source to load into a chunk. - optional
sourcemap
: A Callisto sourcemap mapping lines. - optional
chunkname
: A name to give the resulting chunk. - optional
environment
: The Lua environment to load the chunk into.
Loads a compiled chunk in a way compatible with any Lua 5.1+
class public Compiler.Transform(string source, [table settings]
)
Returns string
- required
source
: The source to transform. - optional
settings
: Settings (source directives) to pass to the transpiler.
Transforms the given source from Callisto to Lua.
Properties
[none]