Crate orion_lib

Source
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§

IdleRunner
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