Package compiler
advanced-vm-target #sleela 2.5 (lib/compiler/tutorials/examples/advanced-vm-target.sleela)
AdvancedVMTargetExample class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
compileTarget | function compileTarget() | No description in source. |
BinaryFormatReference #sleela 2.5 (lib/compiler/BinaryFormatReference.sleela)
BinaryFormatReference class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
validate | function validate(); function identify(); function describe(); function isExecutable(); | No description in source. |
BootstrapCompiler #sleela 2.5 (lib/compiler/examples/Very-Senior/BootstrapCompiler.sleela)
BootstrapCompiler class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
diagnostic | String diagnostic | No description in source. |
sourceRevision | String sourceRevision | No description in source. |
toolchainVersion | String toolchainVersion | No description in source. |
stage0Hash | String stage0Hash | No description in source. |
stage1Hash | String stage1Hash | No description in source. |
stage0Passed | boolean stage0Passed | No description in source. |
stage1Passed | boolean stage1Passed | No description in source. |
outputsCompared | boolean outputsCompared | No description in source. |
reproducible | boolean reproducible | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String revision, String version) | No description in source. |
recordStage0 | boolean recordStage0(boolean success, String artifactHash) | No description in source. |
recordStage1 | boolean recordStage1(boolean success, String artifactHash) | No description in source. |
compareNormalizedOutputs | boolean compareNormalizedOutputs(boolean equal) | No description in source. |
status | String status() | No description in source. |
message | String message() | No description in source. |
CLanguageCompiler #sleela 2.5 (lib/compiler/frontends/c/CLanguageCompiler.sleela)
CLanguageCompiler class extends SLLanguageCompiler
A modular front end that compiles the C programming language into SLeeLa IR and onward to a VM-ready artifact. This is an example of the developer pattern for the modular compiler framework: subclass SLLanguageCompiler, declare the language identity, and override the pipeline phases the front end provides. C is a compiled, native language family; this front end carries the full phase set so it can lower to SLeeLa IR and VM operations. Native emission remains gated by the VM/OS and security boundaries — compilation here is not execution. Family: compiler (front end). Native VM/OS work crosses an explicit bridge.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
runLex | boolean runLex(SLCompileRequest request) | The phase hooks below show where a developer plugs in C-specific behavior. Each still honors the base contract (returns whether the phase is provided) and would, in a full build, drive the C-specific lexer/parser/lowering. |
runParse | boolean runParse(SLCompileRequest request) | No description in source. |
runIR | boolean runIR(SLCompileRequest request) | No description in source. |
CompilerPipeline #sleela 2.5 (lib/compiler/examples/Senior/CompilerPipeline.sleela)
CompilerPipeline class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
diagnostic | String diagnostic | No description in source. |
sourceLoaded | boolean sourceLoaded | No description in source. |
frontendPassed | boolean frontendPassed | No description in source. |
semanticPassed | boolean semanticPassed | No description in source. |
irValidated | boolean irValidated | No description in source. |
artifactWritten | boolean artifactWritten | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
markSourceLoaded | boolean markSourceLoaded(boolean ok, String detail) | No description in source. |
markFrontend | boolean markFrontend(boolean ok, String detail) | No description in source. |
markSemanticAnalysis | boolean markSemanticAnalysis(boolean ok, String detail) | No description in source. |
markIRValidation | boolean markIRValidation(boolean ok, String detail) | No description in source. |
mayEmitArtifact | boolean mayEmitArtifact() | No description in source. |
markArtifactWritten | boolean markArtifactWritten(boolean ok, String detail) | No description in source. |
status | String status() | No description in source. |
message | String message() | No description in source. |
CppLanguageCompiler #sleela 2.5 (lib/compiler/frontends/cpp/CppLanguageCompiler.sleela)
CppLanguageCompiler class extends SLLanguageCompiler
A modular front end that compiles the C++ programming language into SLeeLa IR and onward to a VM-ready artifact. Another example of the developer pattern: subclass SLLanguageCompiler and declare C++'s identity and full pipeline. C++ accepts several canonical source extensions, so the extension list carries each one; the native registry resolves any of them to this front end. Family: compiler (front end). Native VM/OS work crosses an explicit bridge.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
runResolve | boolean runResolve(SLCompileRequest request) | No description in source. |
runSemantic | boolean runSemantic(SLCompileRequest request) | No description in source. |
DynamiteConnector #sleela 2.5 (lib/compiler/DynamiteConnector.sleela)
DynamiteConnector class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
referenceName | String referenceName | No description in source. |
importPath | String importPath | No description in source. |
configuration | String configuration | No description in source. |
properties | String properties | No description in source. |
status | String status | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize() | No description in source. |
resolve | function resolve() | No description in source. |
deferConstruction | function deferConstruction() | No description in source. |
load | function load() | No description in source. |
ExpressionCompiler #sleela 2.5 (lib/compiler/examples/Mid/ExpressionCompiler.sleela)
ExpressionCompiler class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
diagnostic | String diagnostic | No description in source. |
sourceName | String sourceName | No description in source. |
lexed | boolean lexed | No description in source. |
parsed | boolean parsed | No description in source. |
validated | boolean validated | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String name) | No description in source. |
recordLexingResult | boolean recordLexingResult(boolean success, String detail) | No description in source. |
recordParsingResult | boolean recordParsingResult(boolean success, String detail) | No description in source. |
recordSemanticResult | boolean recordSemanticResult(boolean success, String detail) | No description in source. |
status | String status() | No description in source. |
message | String message() | No description in source. |
GoLanguageCompiler #sleela 2.5 (lib/compiler/frontends/go/GoLanguageCompiler.sleela)
GoLanguageCompiler class extends SLLanguageCompiler
A modular front end that compiles the Go programming language into SLeeLa IR and onward to a VM-ready artifact. Go is a compiled, statically typed language with package-level compilation units. This front end rounds out the example set with a second systems-family language that lowers to the native SLVM target. Family: compiler (front end). Native VM/OS work crosses an explicit bridge.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
runResolve | boolean runResolve(SLCompileRequest request) | No description in source. |
hello-vm #sleela 2.5 (lib/compiler/tutorials/examples/hello-vm.sleela)
HelloVMExample class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | function main() | No description in source. |
HelloCompiler #sleela 2.5 (lib/compiler/examples/Novice/HelloCompiler.sleela)
HelloCompiler class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
diagnostic | String diagnostic | No description in source. |
statementValue | String statementValue | No description in source. |
valid | boolean valid | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
acceptSayStatement | boolean acceptSayStatement(String keyword, String quotedValue, boolean closedQuote) | No description in source. |
emitNormalizedRecord | String emitNormalizedRecord() | No description in source. |
message | String message() | No description in source. |
JavaLanguageCompiler #sleela 2.5 (lib/compiler/frontends/java/JavaLanguageCompiler.sleela)
JavaLanguageCompiler class extends SLLanguageCompiler
A modular front end that compiles the Java programming language into SLeeLa IR and onward to an SLJVM artifact. Java is a JVM-family language. This front end declares the SLJVM target as its default so lowering targets the SLeeLa JVM-family artifact rather than the native SLVM. It demonstrates that the modular framework spans managed and native language families through one common contract. Family: compiler (front end). Native VM/OS work crosses an explicit bridge.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
runParse | boolean runParse(SLCompileRequest request) | No description in source. |
JavaScriptLanguageCompiler #sleela 2.5 (lib/compiler/frontends/javascript/JavaScriptLanguageCompiler.sleela)
JavaScriptLanguageCompiler class extends SLLanguageCompiler
A modular front end that compiles the JavaScript programming language into SLeeLa IR and onward to a VM-ready artifact. JavaScript accepts several module/source extensions (.js, .mjs, .cjs). This front end lists each so the registry resolves any of them. It is another scripting-family example alongside Python. Family: compiler (front end). Native VM/OS work crosses an explicit bridge.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
runParse | boolean runParse(SLCompileRequest request) | No description in source. |
LanguageReference #sleela 2.5 (lib/compiler/LanguageReference.sleela)
LanguageReference class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
validate | function validate(); function describe(); function mapsTo(String format); function isNative(); | No description in source. |
multi-language-registry #sleela 2.5 (lib/compiler/tutorials/examples/multi-language-registry.sleela)
MultiLanguageRegistryExample class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | function main() | No description in source. |
PermissibleConnector #sleela 2.5 (lib/compiler/PermissibleConnector.sleela)
PermissibleConnector class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
sight | function sight() | No description in source. |
name | function name() | No description in source. |
travel | function travel() | No description in source. |
process | function process() | No description in source. |
memory | function memory() | No description in source. |
system | function system() | No description in source. |
linearGraph | function linearGraph() | No description in source. |
preserveBalance | function preserveBalance() | No description in source. |
secureFuture | function secureFuture() | No description in source. |
ProgramMapping #sleela 2.5 (lib/compiler/ProgramMapping.sleela)
ProgramMapping class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
validate | function validate(); function describe(); function matches(String languageName); function formats(); | No description in source. |
PythonLanguageCompiler #sleela 2.5 (lib/compiler/frontends/python/PythonLanguageCompiler.sleela)
PythonLanguageCompiler class extends SLLanguageCompiler
A modular front end that compiles the Python programming language into SLeeLa IR and onward to a VM-ready artifact. Python is a dynamically typed scripting language. This front end carries the full pipeline but its semantic phase does lightweight, dynamic-friendly checking rather than static typing — showing that the common contract adapts to a scripting family without changing the pipeline shape. Family: compiler (front end). Native VM/OS work crosses an explicit bridge.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
runLex | boolean runLex(SLCompileRequest request) | No description in source. |
runSemantic | boolean runSemantic(SLCompileRequest request) | No description in source. |
RustLanguageCompiler #sleela 2.5 (lib/compiler/frontends/rust/RustLanguageCompiler.sleela)
RustLanguageCompiler class extends SLLanguageCompiler
A modular front end that compiles the Rust programming language into SLeeLa IR and onward to a VM-ready artifact. Rust is a compiled, statically typed, ownership-checked language. Its semantic phase carries borrow/lifetime analysis in addition to type checking, illustrating how a front end extends the shared semantic phase with language-specific rules while keeping the common pipeline shape. Family: compiler (front end). Native VM/OS work crosses an explicit bridge.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
runSemantic | boolean runSemantic(SLCompileRequest request) | No description in source. |
SafetyReference #sleela 2.5 (lib/compiler/SafetyReference.sleela)
SafetyReference class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
validate | function validate(); function describe(); function requiresVerification(); function permitsExecution(); | No description in source. |
SLAstBuilder #sleela 2.5 (lib/compiler/SLAstBuilder.sleela)
SLAstBuilder class
Defines the SLeeLa standard-library type SLAstBuilder used within the compiler library family.
SLAstNode #sleela 2.5 (lib/compiler/SLAstNode.sleela)
SLAstNode class
Defines the SLeeLa standard-library type SLAstNode used within the compiler library family.
SLBinder #sleela 2.5 (lib/compiler/SLBinder.sleela)
SLBinder class
Defines the SLeeLa standard-library type SLBinder used within the compiler library family.
SLBuildArtifact #sleela 2.5 (lib/compiler/SLBuildArtifact.sleela)
SLBuildArtifact class
Defines the SLeeLa standard-library type SLBuildArtifact used within the compiler library family.
SLBytecodeEmitter #sleela 2.5 (lib/compiler/SLBytecodeEmitter.sleela)
SLBytecodeEmitter class
Defines the SLeeLa standard-library type SLBytecodeEmitter used within the compiler library family.
SLCaseHandler #sleela 2.5 (lib/compiler/SLCaseHandler.sleela)
SLCaseHandler class
SLCodeGenerator #sleela 2.5 (lib/compiler/SLCodeGenerator.sleela)
SLCodeGenerator class
Defines the SLeeLa standard-library type SLCodeGenerator used within the compiler library family.
SLCompileChoice #sleela 2.5 (lib/compiler/SLCompileChoice.sleela)
SLCompileChoice class
Defines SLCompileChoice, the compiler's decision about which source form to compile, making .sldocument a selectable compile choice. A developer tells the compiler "compile this as a program" or "compile this as an ordered document". SLCompileChoice records that selection, resolves it from a file name when not stated explicitly, and routes to the right front end: - a .sleela program compiles through the ordinary SLeeLa Compiler path; - a .sldocument compiles through the document-aware path (which still uses the SLeeLa Compiler for the step methods and any companion .sleela source). The choice is explicit and fail-closed: an unknown form is not guessed; it is surfaced as a diagnostic. Family: compiler. Native VM/OS work crosses an explicit bridge.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
sourceForm | SLSourceForm sourceForm | No description in source. |
inputPath | String inputPath | No description in source. |
state | int state | No description in source. |
diagnostic | String diagnostic | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
choose | void choose(String path, int form) | Choose explicitly by form. |
chooseFromPath | void chooseFromPath(String path) | Choose by inferring the form from the input file's extension. |
resolved | boolean resolved() | No description in source. |
diagnostics | String diagnostics() | No description in source. |
form | int form() | No description in source. |
compilesAsDocument | boolean compilesAsDocument() | No description in source. |
compilesAsProgram | boolean compilesAsProgram() | No description in source. |
compile | int compile() | Compile through the selected front end. Returns a VM frame handle (>= 0) on success, or -1 with a diagnostic. The document path is routed to the document-aware native compile; the program path to the ordinary one. |
SLCompilePlan #sleela 2.5 (lib/compiler/SLCompilePlan.sleela)
SLCompilePlan class
Defines SLCompilePlan, the fail-closed plan/result the framework produces for a compile request against a language front end. A plan records which phases the chosen front end covers, which phases the requested target requires, the first missing phase (0 when none), the resolved target, and whether the request can reach a VM-ready artifact. The native planner never guesses: an unresolved or reference-only path is surfaced rather than silently satisfied. Family: compiler. Native VM/OS work crosses an explicit bridge.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
coveredPhaseMask | int coveredPhaseMask | phases the front end provides |
requiredPhaseMask | int requiredPhaseMask | phases the request needs for its target |
firstMissingPhase | int firstMissingPhase | 0 when none missing |
resolvedTarget | int resolvedTarget | SLLanguageCompiler.TARGET_* |
vmReady | boolean vmReady | true when every required phase is covered |
status | int status | native status: OK / ABSENT / INVALID / BLOCKED |
diagnostic | String diagnostic | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
buildFor | void buildFor(SLLanguageCompiler frontEnd, SLCompileRequest request) | Build the plan by asking the native framework to walk required vs covered phases for the request's resolved target. |
isVMReady | boolean isVMReady() | No description in source. |
missingPhase | int missingPhase() | No description in source. |
target | int target() | No description in source. |
covered | int covered() | No description in source. |
required | int required() | No description in source. |
diagnostics | String diagnostics() | No description in source. |
SLCompiler #sleela 2.5 (lib/compiler/SLCompiler.sleela)
SLCompiler class
Defines the SLeeLa standard-library type SLCompiler used within the compiler library family.
SLCompilerBuildRequest #sleela 2.5 (lib/compiler/SLCompilerBuildRequest.sleela)
SLCompilerBuildRequest class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
inputSource | String inputSource | No description in source. |
outputPath | String outputPath | No description in source. |
target | String target | No description in source. |
nativeCompiler | String nativeCompiler | No description in source. |
strict | boolean strict | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String sourcePath, String destinationPath, String targetName, String compilerPath) | No description in source. |
validate | String validate() | No description in source. |
allowNonStrictPlanning | void allowNonStrictPlanning() | No description in source. |
sourcePath | String sourcePath() | No description in source. |
outputPath | String outputPath() | No description in source. |
targetName | String targetName() | No description in source. |
compilerPath | String compilerPath() | No description in source. |
strictMode | boolean strictMode() | No description in source. |
SLCompilerBuildResult #sleela 2.5 (lib/compiler/SLCompilerBuildResult.sleela)
SLCompilerBuildResult class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
succeeded | boolean succeeded | No description in source. |
outputFile | String outputFile | No description in source. |
target | String target | No description in source. |
statusText | String statusText | No description in source. |
diagnosticText | String diagnosticText | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
fail | void fail(String message) | No description in source. |
complete | void complete(String path, String targetName) | No description in source. |
ok | boolean ok() | No description in source. |
status | String status() | No description in source. |
diagnostics | String diagnostics() | No description in source. |
SLCompilerDeveloperCLI #sleela 2.5 (lib/compiler/SLCompilerDeveloperCLI.sleela)
SLCompilerDeveloperCLI class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
workbench | SLCompilerWorkbench workbench | No description in source. |
lastCommand | String lastCommand | No description in source. |
lastMessage | String lastMessage | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
prepare | boolean prepare(String sourcePath, String outputPath, String target, String compilerPath) | No description in source. |
runBuild | SLCompilerBuildResult runBuild() | No description in source. |
message | String message() | No description in source. |
SLCompilerDiagnostic #sleela 2.5 (lib/compiler/SLCompilerDiagnostic.sleela)
SLCompilerDiagnostic class
Defines the SLeeLa standard-library type SLCompilerDiagnostic used within the compiler library family.
SLCompileRequest #sleela 2.5 (lib/compiler/SLCompileRequest.sleela)
SLCompileRequest class
Defines SLCompileRequest, a single request to compile one input with a chosen language front end toward a chosen target. A request is pure intent: it names the language, the input path, the desired target, and whether the compile must fail closed when a required phase is absent. It does not open, read, parse, link, load, or execute the input. Family: compiler. Native VM/OS work crosses an explicit bridge.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
languageName | String languageName | which registered front end to use |
inputPath | String inputPath | the source path (not opened here) |
requestedTarget | int requestedTarget | one of SLLanguageCompiler.TARGET_*; 0 => front end default |
strict | boolean strict | true => any absent required phase fails the request |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String language, String path, int target) | No description in source. |
beStrict | void beStrict() | No description in source. |
language | String language() | No description in source. |
input | String input() | No description in source. |
target | int target() | No description in source. |
isStrict | boolean isStrict() | No description in source. |
SLCompilerNativeBackend #sleela 2.5 (lib/compiler/SLCompilerNativeBackend.sleela)
SLCompilerNativeBackend class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
emitter | SLNativeSourceEmitter emitter | No description in source. |
toolchain | SLCompilerToolchain toolchain | No description in source. |
target | String target | No description in source. |
diagnostic | String diagnostic | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLCompilerToolchain selectedToolchain) | No description in source. |
selectTarget | boolean selectTarget(String targetName, String specVersion) | No description in source. |
canBuildNative | boolean canBuildNative() | No description in source. |
diagnostics | String diagnostics() | No description in source. |
SLCompilerPipeline #sleela 2.5 (lib/compiler/SLCompilerPipeline.sleela)
SLCompilerPipeline class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
stages | let stages | No description in source. |
SLCompilerRegistry #sleela 2.5 (lib/compiler/SLCompilerRegistry.sleela)
SLCompilerRegistry class
Defines SLCompilerRegistry, the catalog where a developer registers many language front ends and looks them up by name or by source file extension. The registry is what makes the framework modular: each language is an independent SLLanguageCompiler subclass, and the registry holds them side by side with no per-language allow-list baked into the compiler. A developer can register as many implementations as they like; lookup resolves a compile request to exactly one front end, or reports that none claims it. Family: compiler. Native VM/OS work crosses an explicit bridge.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
reset | void reset() | Clear the registry back to empty. |
add | boolean add(SLLanguageCompiler frontEnd) | Register (or replace by name) a language front end. Returns true on success. |
count | int count() | How many front ends are registered. |
has | boolean has(String languageName) | Is a language registered? |
resolveByExtension | String resolveByExtension(String fileName) | Resolve a compile request to a front-end language name by the input's extension. Returns the matched language name, or the empty string when no registered front end claims the extension (unresolved is surfaced, not guessed). |
SLCompilerToolchain #sleela 2.5 (lib/compiler/SLCompilerToolchain.sleela)
SLCompilerToolchain class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
cCompiler | String cCompiler | No description in source. |
cppCompiler | String cppCompiler | No description in source. |
cStandard | String cStandard | No description in source. |
cppStandard | String cppStandard | No description in source. |
platform | String platform | No description in source. |
allowNativeBuild | boolean allowNativeBuild | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String cPath, String cppPath, String osName) | No description in source. |
authorizeNativeBuild | void authorizeNativeBuild() | No description in source. |
readyForC | boolean readyForC() | No description in source. |
readyForCPP | boolean readyForCPP() | No description in source. |
nativeBuildAllowed | boolean nativeBuildAllowed() | No description in source. |
targetPlatform | String targetPlatform() | No description in source. |
cMode | String cMode() | No description in source. |
cppMode | String cppMode() | No description in source. |
SLCompilerWorkbench #sleela 2.5 (lib/compiler/SLCompilerWorkbench.sleela)
SLCompilerWorkbench class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
registry | SLCompilerRegistry registry | No description in source. |
pipeline | SLCompilerPipeline pipeline | No description in source. |
request | SLCompilerBuildRequest request | No description in source. |
result | SLCompilerBuildResult result | No description in source. |
diagnostic | String diagnostic | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
configureBuild | boolean configureBuild(String sourcePath, String outputPath, String target, String compilerPath) | No description in source. |
build | SLCompilerBuildResult build() | No description in source. |
status | String status() | No description in source. |
diagnostics | String diagnostics() | No description in source. |
SLConstructorSeries #sleela 2.5 (lib/compiler/SLConstructorSeries.sleela)
SLConstructorSeries class
SleelaCompiler #sleela 2.5 (lib/compiler/SleelaCompiler.sleela)
SleelaCompiler class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function load(source); function lex(); function parse(); function resolveSymbols(); | No description in source. |
analyze | function analyze(); function buildIR(); function lowerVM(); function generate(); function verify(); | No description in source. |
compileBasicComplete | function compileBasicComplete(); function compileAdvancedTotal(); function emitSLVM(); function emitSLJVM(); | No description in source. |
report | function report(); function validate(); | No description in source. |
SleelaCompilerAdvanced #sleela 2.5 (lib/compiler/SleelaCompilerAdvanced.sleela)
SleelaCompilerAdvanced class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function requireTotalPipeline(); function reviewSource(); function reviewFrontend(); | No description in source. |
reviewSymbols | function reviewSymbols(); function reviewSemantics(); function reviewIR(); function reviewLowering(); | No description in source. |
reviewVMTarget | function reviewVMTarget(); function reviewCapabilities(); function reviewSecurity(); function reviewProvenance(); | No description in source. |
reviewCertificates | function reviewCertificates(); function reviewCodegen(); function validate(); function report(); | No description in source. |
SleelaCompilerBasic #sleela 2.5 (lib/compiler/SleelaCompilerBasic.sleela)
SleelaCompilerBasic class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function requireCompletePipeline(); function reviewSource(); function reviewFrontend(); | No description in source. |
reviewSemantics | function reviewSemantics(); function reviewIR(); function reviewLowering(); function reviewCodegen(); | No description in source. |
validate | function validate(); function report(); | No description in source. |
SleelaCompilerCodegen #sleela 2.5 (lib/compiler/SleelaCompilerCodegen.sleela)
SleelaCompilerCodegen class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function emitSLVM(); function emitSLJVM(); function emitC(); function emitCPP(); | No description in source. |
emitManifest | function emitManifest(); function emitSymbols(); function emitDiagnostics(); function validate(); | No description in source. |
SleelaCompilerDiagnostics #sleela 2.5 (lib/compiler/SleelaCompilerDiagnostics.sleela)
SleelaCompilerDiagnostics class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
addError | function addError(code, message); function addWarning(code, message); function addNote(code, message); | No description in source. |
addDependency | function addDependency(module, requirement); function hasErrors(); function emitText(); function emitC(); | No description in source. |
emitCPP | function emitCPP(); function validate(); | No description in source. |
SleelaCompilerIR #sleela 2.5 (lib/compiler/SleelaCompilerIR.sleela)
SleelaCompilerIR class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function createModule(name); function createValue(type); function createOperation(op); | No description in source. |
createBlock | function createBlock(); function createFunction(name); function connectBlocks(); function validate(); | No description in source. |
emitText | function emitText(); function emitC(); function emitCPP(); | No description in source. |
SleelaCompilerLexer #sleela 2.5 (lib/compiler/SleelaCompilerLexer.sleela)
SleelaCompilerLexer class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function scan(source); function tokenize(); function emitToken(kind, value); | No description in source. |
location | function location(); function validateTokenStream(); function reset(); | No description in source. |
SleelaCompilerLowering #sleela 2.5 (lib/compiler/SleelaCompilerLowering.sleela)
SleelaCompilerLowering class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(target); function lowerOperation(op); function lowerBlock(block); function lowerFunction(fn); | No description in source. |
lowerModule | function lowerModule(module); function resolveCapability(op); function resolveMemory(op); | No description in source. |
resolveIO | function resolveIO(op); function resolveResolver(op); function resolveConcurrency(op); function validate(); | No description in source. |
SleelaCompilerParser #sleela 2.5 (lib/compiler/SleelaCompilerParser.sleela)
SleelaCompilerParser class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function parse(); function parseClass(); function parseFunction(); | No description in source. |
parseField | function parseField(); function parseList(); function parseExpression(); function parseStatement(); | No description in source. |
synchronize | function synchronize(); function validateTree(); function declarationCount(); | No description in source. |
SleelaCompilerSemantics #sleela 2.5 (lib/compiler/SleelaCompilerSemantics.sleela)
SleelaCompilerSemantics class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function analyzeTypes(); function analyzeDeclarations(); function analyzeCapabilities(); | No description in source. |
analyzeDependencies | function analyzeDependencies(); function analyzeSecurity(); function analyzeMemory(); function analyzeIO(); | No description in source. |
validate | function validate(); function isVMReady(); | No description in source. |
SleelaCompilerSource #sleela 2.5 (lib/compiler/SleelaCompilerSource.sleela)
SleelaCompilerSource class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
load | function load(path); function preserveIdentity(); function hash(); function discoverDeclarations(); | No description in source. |
discoverModules | function discoverModules(); function discoverRequirements(); function validate(); | No description in source. |
SleelaCompilerSymbols #sleela 2.5 (lib/compiler/SleelaCompilerSymbols.sleela)
SleelaCompilerSymbols class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function define(name, kind); function resolve(name); function enterScope(); | No description in source. |
leaveScope | function leaveScope(); function resolveImports(); function resolveDeclarations(); function detectDuplicates(); | No description in source. |
validate | function validate(); | No description in source. |
SleelaCompilerVMTarget #sleela 2.5 (lib/compiler/SleelaCompilerVMTarget.sleela)
SleelaCompilerVMTarget class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
initialize | function initialize(); function selectSLVM(); function selectSLJVM(); function validateArchitecture(); | No description in source. |
validateSecurity | function validateSecurity(); function validateMemory(); function validateCapabilities(); | No description in source. |
validateFeatures | function validateFeatures(); function isReady(); function emitManifest(); | No description in source. |
SLLanguageCompiler #sleela 2.5 (lib/compiler/SLLanguageCompiler.sleela)
SLLanguageCompiler class
Defines SLLanguageCompiler, the language-neutral base contract a developer extends to build a compiler for any publicly known programming language (C, C++, Java, Python, JavaScript, Rust, Go, ...). This is the heart of the modular compiler framework. A new language front end is created by subclassing SLLanguageCompiler and overriding the pipeline phases it provides. Every front end lowers its own language toward the common SLeeLa IR and, from there, a VM-ready artifact — so the authoritative path stays: <language> source -> front end -> SLeeLa IR -> VM lowering -> SLVM/SLJVM The framework does not create a parallel language and does not grant itself VM, capability, security, resolver, memory, or certificate authority. A produced artifact is only ever executed later, across an explicit SLeeLa VM/OS and security boundary. Compilation is not execution. Family: compiler. Native VM/OS work crosses an explicit bridge.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PHASE_SOURCE | static final int PHASE_SOURCE = 1 | --- Canonical pipeline phases, in order. Mirrors sleela_langc.h. --- load/normalize source units |
PHASE_LEX | static final int PHASE_LEX = 2 | tokenize |
PHASE_PARSE | static final int PHASE_PARSE = 3 | build the language syntax tree |
PHASE_RESOLVE | static final int PHASE_RESOLVE = 4 | names, scopes, imports, symbols |
PHASE_SEMANTIC | static final int PHASE_SEMANTIC = 5 | types, capabilities, dependencies |
PHASE_IR | static final int PHASE_IR = 6 | lower to target-neutral SLeeLa IR |
PHASE_LOWER | static final int PHASE_LOWER = 7 | lower IR to VM-ready operations |
PHASE_CODEGEN | static final int PHASE_CODEGEN = 8 | emit artifact |
TARGET_SLVM | static final int TARGET_SLVM = 1 | --- Lowering targets. Mirrors sleela_langc.h. --- |
TARGET_SLJVM | static final int TARGET_SLJVM = 2 | No description in source. |
TARGET_SLIR | static final int TARGET_SLIR = 3 | No description in source. |
TARGET_NATIVE | static final int TARGET_NATIVE = 4 | No description in source. |
languageName | String languageName | Identity a concrete front end declares. e.g. "C", "C++", "Java", "Python" |
languageFamily | String languageFamily | e.g. "C-family", "JVM", "scripting" |
languageVersion | String languageVersion | the accepted language version |
sourceExtensions | String sourceExtensions | comma list, e.g. ".c" or ".cc,.cpp,.cxx" |
defaultTarget | int defaultTarget | one of TARGET_* |
referenceOnly | boolean referenceOnly | true => identify/plan only, never emit |
phaseMask | int phaseMask | Which phases this front end provides, as a bitmask of (1 << (phase-1)). |
diagnostic | String diagnostic | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
declare | void declare(String name, String family, String version, String exts, int target) | A subclass calls this from its own configure() to declare identity. |
provide | void provide(int phase) | Mark a provided phase. A front end calls this once per phase it implements. |
provides | boolean provides(int phase) | No description in source. |
runSource | boolean runSource(SLCompileRequest request) | --- Pipeline phase hooks. The base implementations are no-ops that report "absent"; a concrete front end overrides the phases it actually provides. Each returns true when the phase completed, false when refused/incomplete. |
runLex | boolean runLex(SLCompileRequest request) | No description in source. |
runParse | boolean runParse(SLCompileRequest request) | No description in source. |
runResolve | boolean runResolve(SLCompileRequest request) | No description in source. |
runSemantic | boolean runSemantic(SLCompileRequest request) | No description in source. |
runIR | boolean runIR(SLCompileRequest request) | No description in source. |
runLower | boolean runLower(SLCompileRequest request) | No description in source. |
runCodegen | boolean runCodegen(SLCompileRequest request) | No description in source. |
register | int register() | Register this front end with the native, language-neutral registry so it can be found by name or by source extension alongside every other language. |
planCompile | SLCompilePlan planCompile(SLCompileRequest request) | Produce a compile plan for `request` against this front end. The native framework walks the required phases for the requested target and reports the first missing one (fail-closed; nothing is guessed or silently added). |
name | String name() | No description in source. |
target | int target() | No description in source. |
isReferenceOnly | boolean isReferenceOnly() | No description in source. |
diagnostics | String diagnostics() | No description in source. |
SLLexer #sleela 2.5 (lib/compiler/SLLexer.sleela)
SLLexer class
Defines the SLeeLa standard-library type SLLexer used within the compiler library family.
SLLowerer #sleela 2.5 (lib/compiler/SLLowerer.sleela)
SLLowerer class
Defines the SLeeLa standard-library type SLLowerer used within the compiler library family.
SLNameResolver #sleela 2.5 (lib/compiler/SLNameResolver.sleela)
SLNameResolver class
Defines the SLeeLa standard-library type SLNameResolver used within the compiler library family.
SLNativeCompiler #sleela 2.5 (lib/compiler/SLNativeCompiler.sleela)
SLNativeCompiler class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | let name | No description in source. |
version | let version | No description in source. |
languageSpec | let languageSpec | No description in source. |
supportedForms | let supportedForms | No description in source. |
supportsBytecode | let supportsBytecode | No description in source. |
supportsNativeCode | let supportsNativeCode | No description in source. |
experimental | let experimental | No description in source. |
SLNativeSourceEmitter #sleela 2.5 (lib/compiler/SLNativeSourceEmitter.sleela)
SLNativeSourceEmitter class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
target | String target | No description in source. |
languageVersion | String languageVersion | No description in source. |
strict | boolean strict | No description in source. |
diagnostic | String diagnostic | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String targetName, String specVersion) | No description in source. |
validateTarget | boolean validateTarget() | No description in source. |
emitVerifiedIR | boolean emitVerifiedIR(String irPath, String outputPath) | The native bridge consumes verified compiler IR, not unchecked source text. |
diagnostics | String diagnostics() | No description in source. |
SLObjectCreationResolver #sleela 2.5 (lib/compiler/SLObjectCreationResolver.sleela)
SLObjectCreationResolver class
SLParser #sleela 2.5 (lib/compiler/SLParser.sleela)
SLParser class
Defines the SLeeLa standard-library type SLParser used within the compiler library family.
SLSourceForm #sleela 2.5 (lib/compiler/SLSourceForm.sleela)
SLSourceForm class
Defines SLSourceForm, the set of SLeeLa source forms the compiler can be asked to compile, so that .sldocument is a first-class compile choice alongside ordinary .sleela. The SLeeLa Compiler accepts more than one source form. This type names each form, its canonical extension, and whether it is ordered top-down. The compiler's selection model (language -> family -> version -> producer -> source form -> IR/object -> target) consults this to pick the right front end. Forms: SLEELA — the general program/source unit (.sleela), class/method shaped. SLDOCUMENT — the ordered, top-down document (.sldocument); annotated method steps run in order, each usually returning one binary value. SLSCRIPT — the dynamic scripting form (.sleela-script). Family: compiler. Native VM/OS work crosses an explicit bridge.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SLEELA | static final int SLEELA = 1 | No description in source. |
SLDOCUMENT | static final int SLDOCUMENT = 2 | No description in source. |
SLSCRIPT | static final int SLSCRIPT = 3 | No description in source. |
form | int form | No description in source. |
extension | String extension | canonical extension, including the dot |
ordered | boolean ordered | true when the form runs strictly top-down |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int whichForm) | No description in source. |
fromExtension | int fromExtension(String fileName) | Infer the source form from a file name's extension. Returns 0 (unknown) when the extension is not a recognised SLeeLa source form. |
value | int value() | No description in source. |
ext | String ext() | No description in source. |
isOrdered | boolean isOrdered() | No description in source. |
isDocument | boolean isDocument() | No description in source. |
isProgram | boolean isProgram() | No description in source. |
endsWith | boolean endsWith(String s, String suffix) | Small helper: does `s` end with `suffix`? (The .sldocument check runs before the .sleela check so the longer extension is matched first.) |
SLSourceLocation #sleela 2.5 (lib/compiler/SLSourceLocation.sleela)
SLSourceLocation class
Defines the SLeeLa standard-library type SLSourceLocation used within the compiler library family.
SLToken #sleela 2.5 (lib/compiler/SLToken.sleela)
SLToken class
Defines the SLeeLa standard-library type SLToken used within the compiler library family.
SLTokenStream #sleela 2.5 (lib/compiler/SLTokenStream.sleela)
SLTokenStream class
Defines the SLeeLa standard-library type SLTokenStream used within the compiler library family.
SLTypeChecker #sleela 2.5 (lib/compiler/SLTypeChecker.sleela)
SLTypeChecker class
Defines the SLeeLa standard-library type SLTypeChecker used within the compiler library family.