relix 0.1.0

A Pratt parser implementation for a custom language with support for expressions, statements, and type annotations
Documentation
1
2
3
4
5
6
7
8
9
10
use std::fs;
use relix::parser::parse;

fn main() {
    let source = fs::read_to_string("test.lang").expect("Failed to read test.lang");
    match parse(&source) {
        Ok(ast) => println!("{:#?}", ast),
        Err(e) => eprintln!("Parse error: {}", e),
    }
}