Open Armavica opened 5 years ago
I'm interested in this ... but a couple of things have stopped me from working on it so far:
Ast
type, having Rust types for the various sorts, so that we can be sure to dispatch to the correct underlying operation.But that shouldn't stop you!
A good first step might be having some additional types and then creating the operators for them?
I'm happy to see a PR! I'm also happy to have a big discussion here. :)
How would you feel about overloading Rust operators, as syntactic sugar for some of the functions in
Ast
? We can't do all of them, but at least some of the most useful ones likeadd
,sub
,mul
,div
,mod
,minus
,and
,or
,xor
,not
(I may have missed some).I am happy to work on a PR if this is okay.