Mono is an interpreted programming language developed using Rust.
As Mono is still in its early stages, not all planned features have been implemented. Current supported features include:
- Evaluating arithmetic expressions.
- Evaluating boolean expressions.
- Variables.
- If-Else statements.
- While statements.
- Functions.
- Lists.
Mono's command-line interface (CLI) offers various capabilities, including executing files and offering an interactive REPL. There are also several modes available for both functionalities.
To launch the REPL:
> mono <flag>
To execute a file:
> mono <flag> <path/to/file.mono>
To execute code:
> mono -c <flag> <code>
The following flags are available to customize your experience:
-t
: Tokenizes the input and prints each token.-p
: Parses the input and prints a formatted representation of the generated AST.-e
: Evaluates the input and prints the resulting value.
By utilizing these flags, you can gain insights into various stages of Mono's execution process.