mirror of https://git.sr.ht/~garritfra/sabre
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
403 B
20 lines
403 B
use std::collections::HashMap; |
|
use crate::parser::node_type::Function; |
|
use crate::parser::node_type::Type; |
|
|
|
pub struct Table { |
|
types: Vec<Type>, |
|
functions: HashMap<String, Function>, |
|
modules: Vec<String>, |
|
} |
|
|
|
impl Table { |
|
pub(crate) fn new() -> Self { |
|
Self { |
|
types: Vec::new(), |
|
functions: HashMap::new(), |
|
modules: Vec::new() |
|
} |
|
} |
|
} |
|
|
|
|