sml-lang 0.1.0

A fast CFG-style markup/config language parser written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod lexer;
pub mod validator;
pub mod codegen;
pub mod error;

pub use error::{Error, ErrorType};
pub use lexer::Token;

/// Main SML pipeline entrypoint
pub fn compile(input: String) -> Result<String, Error> {
    let tokens = lexer::generate_tokens(input)?;
    validator::validate(&tokens)?;
    let output = codegen::generate_code(&tokens);
    Ok(output)
}