mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
basis for type-checked builtins (1)
This commit is contained in:
parent
3ac886115a
commit
5d868a759d
@ -91,7 +91,10 @@ impl BuiltinFunction {
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
pub fn returns(&self) -> VType {
|
||||
pub fn takes(&self, in: Vec<VType>) -> bool {
|
||||
todo!()
|
||||
}
|
||||
pub fn returns(&self, in: Vec<VType>) -> VType {
|
||||
match self {
|
||||
// []
|
||||
Self::Print | Self::Println | Self::Debug | Self::Sleep => VType {
|
||||
|
Loading…
Reference in New Issue
Block a user