Crate lucia_lang
source ·Expand description
Lucia Language Compiler and VM.
+-------+ +--------+ +----------+
str -> | lexer | - Tokens -> | parser | - AST -> | analyzer |
+-------+ +--------+ +----------+
|
+----- AST with semantic information ------+
|
v
+---------+ +-----------------------+
| codegen | - Code -> | Lucia Virtual Machine |
+---------+ +-----------------------+
Examples
use lucia_lang::{compiler::code::Code, Lucia};
let input = r#"
import std::io::{println}
println("Hello World!")
"#;
let code = Code::try_from(input).unwrap();
let mut lucia = Lucia::new();
lucia.run_code(code);
Re-exports
pub use context::*;
Modules
- The Lucia lang compiler.
- Errors of this crate.
- The Lucia Standard Library.
- The meta method used in lucia lang.
- The Lucia Objects.