Expand description
Lexer, parser and runner for the Orion Programming Language.
§Aspirations
Out of the box, users get a polished lexer, parser and runner for Orion.
§Example
Run
$ cargo add orion_lib
Then use the functions
use orion_lib::run_contents;
use color_eyre::Result;
fn main() -> Result<()> {
run_contents("$say(\"Hello, world!\")".to_string(), false)?;
Ok(())
}
Structs§
- Idle
Runner - Run an IDLE Process.
Functions§
- decode
- Decode a JIT string.
- encode
- Encode a JIT string.
- run_ast
- Run an Abstract Syntax Tree.
- run_
contents - Run the contents of an Orion file.
- setup_
error_ hooks - Install the default panic and error report hooks