Skip to content

Commit

Permalink
Unify Python Function with Expression
Browse files Browse the repository at this point in the history
- Expressions are now callable if they are variables
- Unify symbol definition in Python API
- Allow attribute definition on multiple symbols
- Wildcards matching function names now have type Var
  • Loading branch information
benruijl committed Apr 23, 2024
1 parent f6d8749 commit d2ee7e6
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 177 deletions.
3 changes: 1 addition & 2 deletions src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1292,8 +1292,7 @@ impl<'a> Match<'a> {
}
},
Self::FunctionName(n) => {
let f = out.to_fun(*n);
f.set_normalized(true);
out.to_var(*n);
}
}
}
Expand Down
Loading

0 comments on commit d2ee7e6

Please sign in to comment.