From 6322755a436cb8c37114404fb7ee44c8af6eea49 Mon Sep 17 00:00:00 2001 From: Colin Holzman Date: Tue, 23 Mar 2021 12:26:02 -0400 Subject: [PATCH] Updated readme. --- readme.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 0c850fd..1b8493e 100644 --- a/readme.md +++ b/readme.md @@ -120,9 +120,19 @@ Clone the repo and build the makina-compiler project using Intellij. Or download ### Run the compiler ``` -java -jar //makina-compiler.jar [] +java -jar //makina-compiler.jar [] [] ``` ### Output -Two files, `.h` and `.c` will be created (or overwritten!) in the same directory as ``. +Two files, `.h` and `.c` will be created (or overwritten!) in the same directory as `` or in the specified output directory. + +### Command line options + +`-o ` or `--output `: Specify the output path for generated files. + +`-m ` or `--machine-data `: Specify the type of the `ctx` member of the generated machine type. The default type is `void *`. May occur zero or one times. + +`-e ` or `--event-data `: Specify the type of the `ctx` member of the generated event type. The default type is `void *`. May occur zero or one times. + +`-i ` or `--include `: Specify files to include in the generated C header. This can be used to provide definitions of custom types specified with `-e` or `-m`. May occur zero or more times.