mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-15 18:05:03 +01:00
small api changes
This commit is contained in:
parent
b3fde273d6
commit
78f8382502
3 changed files with 8 additions and 10 deletions
|
|
@ -10,14 +10,14 @@ mod value;
|
|||
|
||||
use crate::ast::Program;
|
||||
use bumpalo::Bump;
|
||||
|
||||
pub use lex::*;
|
||||
pub use parse::*;
|
||||
|
||||
pub fn run_program(program: &str) {
|
||||
let lexer = lex::Lexer::lex(program);
|
||||
|
||||
let ast_alloc = Bump::new();
|
||||
|
||||
let lexer = lex::Lexer::new(program);
|
||||
let ast = parse::parse(lexer, &ast_alloc);
|
||||
|
||||
match ast {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue