#programming-language #orion #lexer #executing #lib #parser #runner

orion_lib

A library for parsing and executing the Orion Programming Language

12 releases (7 major breaking)

7.4.0 Aug 8, 2024
7.3.0 Jun 29, 2024
6.0.0 May 23, 2024
5.0.0 May 17, 2024
0.1.0 Feb 4, 2024

#458 in Programming languages

Download history 73/week @ 2024-07-29 118/week @ 2024-08-05 7/week @ 2024-08-12 50/week @ 2024-09-16 13/week @ 2024-09-23 17/week @ 2024-09-30

958 downloads per month

Custom license

84KB
2K SLoC

Rust 2K SLoC LALRPOP 349 SLoC // 0.0% comments

orion-lib

A library for parsing and executing the Orion Programming Language


lib.rs:

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(())
}

Dependencies

~8–16MB
~221K SLoC