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