reid-llvm/src/main.rs

14 lines
349 B
Rust
Raw Normal View History

use crate::{lexer::EASIEST, parser::LetStatement, token_stream::TokenStream};
2023-07-27 16:40:12 +02:00
mod lexer;
mod parser;
mod token_stream;
2023-07-27 16:40:12 +02:00
fn main() {
let tokens = lexer::tokenize(EASIEST).unwrap();
let mut token_stream = TokenStream::from(&tokens);
2023-07-27 16:40:12 +02:00
dbg!(token_stream.parse::<LetStatement>().ok());
dbg!(token_stream.parse::<LetStatement>().ok());
2023-07-27 16:40:12 +02:00
}