Start adding object access
This commit is contained in:
parent
583e87c19a
commit
a74027bb1f
@ -286,6 +286,9 @@ impl<'a> State<'a> {
|
||||
let evaled_args = evaled_args?;
|
||||
|
||||
Ok(match (builtin, evaled_args.as_slice()) {
|
||||
(FieldAccess, &[Node::PrimObject { ref name, ref tag, ref items }]) => {
|
||||
unimplemented!()
|
||||
},
|
||||
(binop, &[Node::Expr(ref lhs), Node::Expr(ref rhs)]) => match (binop, lhs, rhs) {
|
||||
/* binops */
|
||||
(Add, Lit(Nat(l)), Lit(Nat(r))) => Lit(Nat(l + r)),
|
||||
|
Loading…
Reference in New Issue
Block a user