WIP lambda
* typesystem extended * docstrings and callback * tests defined, not implemented
This commit is contained in:
parent
7befdc869b
commit
b0bd369c1d
4 changed files with 88 additions and 24 deletions
12
src/sym.rs
12
src/sym.rs
|
|
@ -227,6 +227,18 @@ impl fmt::Display for Args {
|
|||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for UserFn {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "(lambda: (");
|
||||
for i in self.arg_syms {
|
||||
write!(f, "{} ", i);
|
||||
}
|
||||
write!(f, ") {})", self.ast);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for ValueType {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue