mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-14 17:35:03 +01:00
started lexer
This commit is contained in:
parent
3eeafb574c
commit
0f7999cc0f
4 changed files with 295 additions and 0 deletions
8
src/lib.rs
Normal file
8
src/lib.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
mod lex;
|
||||
mod parse;
|
||||
|
||||
pub fn run_program(program: &str) {
|
||||
let lexer = lex::Lexer::lex(program);
|
||||
let tokens: Result<Vec<_>, _> = lexer.collect();
|
||||
println!("{:#?}", tokens);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue