#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

#591 in Programming languages

Download history 205/week @ 2024-06-22 149/week @ 2024-06-29 2/week @ 2024-07-06 72/week @ 2024-07-27 112/week @ 2024-08-03 13/week @ 2024-08-10 1/week @ 2024-08-17 48/week @ 2024-09-14 14/week @ 2024-09-21 17/week @ 2024-09-28 1/week @ 2024-10-05

80 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
~223K SLoC