Class ReplCompiler
java.lang.Object
org.ek9lang.cli.ReplCompiler
Handles compilation of REPL input to bytecode.
Uses serialization to provide a fresh bootstrap context for each compilation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Clean up temporary files.Compile with default non-strict mode.Compile the assembled EK9 source.execute(ReplCompileResult result) Execute the compiled bytecode and return captured output.getAllSymbols(String prefix) Get all symbols from all modules that start with the given prefix.getLocalVariables(String prefix, String scopeName) Get local variables from a scope matching the prefix.locateSymbol(String name, int line, int column) Look up a symbol by name from the last successful compilation.locateSymbolByName(String name) Simple symbol lookup by name only.locateSymbolByName(String name, int lineInSource, int column) Symbol lookup by name with position info.
-
Constructor Details
-
ReplCompiler
-
-
Method Details
-
compile
Compile the assembled EK9 source. -
compile
Compile with default non-strict mode. -
execute
Execute the compiled bytecode and return captured output. -
locateSymbol
-
locateSymbolByName
-
locateSymbolByName
-
getAllSymbols
-
getLocalVariables
-
cleanup
public void cleanup()Clean up temporary files.
-