Class Ek9
java.lang.Object
org.ek9lang.cli.Ek9
Main entry point into the compiler, build system and language server.
Will probably be wrapped in a native C executable at some point - or even moved native.
But for now just use java -jar ek9.jar
java -jar ek9.jar -C ./some/path/to/file.ek9
From an end user point of view they would interact with the script; so they would only write:
./some/path/to/file.ek9 -d 2 -f someother.txt
or ek9 ./some/path/to/file.ek9 -d 2 -f someother.txt
etc
./some/path/to/file.ek9 -r UDPServer1 -d 2 -f someother.txt
Exit codes are defined in
Ek9ExitCodes
.
Note exit code 0 means there is a command run printed to stdout.
Exit code 1 means there is no further command to run but what you asked to do worked.
Exit code 2 means there was something wrong with the command line parameters.
Exit code 3 means there was some sort of file processing issue not found, missing content etc.
Exit code 4 means you used an invalid combination of command line parameters or there were
inappropriate.
Exit code 5 means the ek9 file you specified does not have any programs in it.
Exit code 6 means the ek9 file does have more than one program, and you did not specify
which to run.
Exit code 7 means the ek9 compiler when running as LSP failed.
Exit code 8 means the ek9 compilation failed with errors.
Exit code 9 means wrong number of arguments provided to program.
Exit code 10 means cannot convert argument to required type.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Ek9
Ek9(CompilationContext compilationContext)
-
-
Method Details
-
main
Run the main Ek9 compiler.- Throws:
InterruptedException
-
run
Run the command line and return the exit code. This can be either the language server or just the command line compiler.- Throws:
InterruptedException
-