]> ocean-lang.org Git - ocean/commit
oceani: add some support for lvalues.
authorNeilBrown <neil@brown.name>
Tue, 30 Apr 2019 06:24:09 +0000 (16:24 +1000)
committerNeilBrown <neil@brown.name>
Wed, 1 May 2019 08:18:51 +0000 (18:18 +1000)
commitf4b24ac2cd27f5ee0e370063509f154f1e5646bf
tree251d47c914bc7031efbff54008f045465b024eb3
parent99480873737f9aed769901f86c39d074982368b3
oceani: add some support for lvalues.

New linterp_exec() returns an lvalue, (pointer to value)
and individual cases can provide either an lvalue or an rvalue.

This means the RHS of assignment might not be a simple variable,
so we leave the "v = v->merged" part to the "interp exec" for Xvar.
Also, linterp_exec() might return NULL, so be careful.
This might happen, e.g., when an array index is out of bounds.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani.mdc