1 unstable release

0.1.0 Mar 25, 2023

#159 in Programming languages

MIT/Apache

270KB
7K SLoC

Lucia-lang

A programming language inspired by Lua and Python.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

lib.rs:

Lucia Language Compiler and VM.

       +-------+             +--------+          +----------+
str -> | lexer | - Tokens -> | parser | - AST -> | analyzer |
       +-------+             +--------+          +----------+
                                                       |
            +----- AST with semantic information ------+
            |
            v
       +---------+           +-----+
       | codegen | - Code -> | LVM |
       +---------+           +-----+

Examples

use lucia_lang::{lvm::Lvm, code:: Code};
let input = r#"
import std::io::{println}
println("Hello World!")
"#;
let code = Code::try_from(input).unwrap();
let mut lvm = Lvm::new();
lvm.run(code).unwrap();

Dependencies

~1–1.5MB
~33K SLoC