Package org.ek9lang.cli
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
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
The range of exit codes that EK9 will use.static final int
-
Constructor Summary
-
Method Summary
-
Field Details
-
RUN_COMMAND_EXIT_CODE
public static final int RUN_COMMAND_EXIT_CODEThe range of exit codes that EK9 will use.- See Also:
-
SUCCESS_EXIT_CODE
public static final int SUCCESS_EXIT_CODE- See Also:
-
BAD_COMMANDLINE_EXIT_CODE
public static final int BAD_COMMANDLINE_EXIT_CODE- See Also:
-
FILE_ISSUE_EXIT_CODE
public static final int FILE_ISSUE_EXIT_CODE- See Also:
-
BAD_COMMAND_COMBINATION_EXIT_CODE
public static final int BAD_COMMAND_COMBINATION_EXIT_CODE- See Also:
-
NO_PROGRAMS_EXIT_CODE
public static final int NO_PROGRAMS_EXIT_CODE- See Also:
-
PROGRAM_NOT_SPECIFIED_EXIT_CODE
public static final int PROGRAM_NOT_SPECIFIED_EXIT_CODE- See Also:
-
LANGUAGE_SERVER_NOT_STARTED_EXIT_CODE
public static final int LANGUAGE_SERVER_NOT_STARTED_EXIT_CODE- See Also:
-
-
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
-