Go to MLOG transpiler.
A Web IDE is available here
- Functions
- Multiple function parameters/arguments
return
from functionsfor
loopsif
/else if
/else
statementsswitch
statementbreak
/continue
/fallthrough
statements- Binary and Unary math
- Function level variable scopes
- Contextual errors
- Tree-shaking unused functions
- Multi-pass pre/post-processing
- Full variable block scoping
- Variable argument count functions
- Multiple function return values
- Optimize simple jump instructions
- Only hardcoded (translated) imports allowed
- Single file support only
- No recursion (more info here)
- Transpilation optimizations
- MLOG Runtime
Usage:
go-mlog transpile [flags] <program>
Flags:
-h, --help help for transpile
Global Flags:
--colors Force log output with colors
--comments Output comments
--debug Write to debug memory cell
--log string The log level to output (default "info")
--numbers Output line numbers
--output string Output file. Outputs to stdout if unspecified