Runable executables of interpreter availeble in releases
exec
is shortuct executable of interpreter (in ./build/
or downloaded from releses)
-h
show helpexec InputFile [OutputFile]
InputFile
.mC or .json fileOutputFile
(optional) if input is .mC file then in json output file will be saved compiled json internal represenantaion.
- Other arguments
-f
force overwrite file when output (json) specified-i
run interpreter (no need when no output file specified)
exec
is shortucut for executable of interpret
exec test.mC
compile and inteprettest.mC
fileexec test.mC output.json
save compiled program intooutput.json
exec test.mC output.json -i
save compiled program intooutput.json
and run interpreterexec output.json
interpret compiled file
When .mC file contains syntax error, compilation is aborted and all error is outputed into console. (in IDE error have clickable links)
Running .json
file can result in Error reading json file
. All json file has to satisfy mCTree.schema.json
schema to be runable by interpreter.