Start adding object access

This commit is contained in:
greg 2019-08-20 00:20:07 -07:00
parent 583e87c19a
commit a74027bb1f
1 changed files with 3 additions and 0 deletions

View File

@ -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)),