mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 10:25:02 +01:00
start bird
This commit is contained in:
parent
0b79d4500d
commit
68a91a7b44
5 changed files with 41 additions and 0 deletions
12
src/bird/mem.rs
Normal file
12
src/bird/mem.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use std::collections::HashMap;
|
||||
use std::rc::Rc;
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Hash)]
|
||||
enum Value {
|
||||
Null,
|
||||
Bool(bool),
|
||||
Number(f64),
|
||||
String(String),
|
||||
Object(HashMap<String, Value>),
|
||||
Array(Vec<Value>),
|
||||
}
|
||||
8
src/bird/mod.rs
Normal file
8
src/bird/mod.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
mod mem;
|
||||
|
||||
use crate::ast::Program;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Vm {}
|
||||
|
||||
fn execute(program: Program) {}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
mod ast;
|
||||
mod bird;
|
||||
mod errors;
|
||||
mod lex;
|
||||
mod parse;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue