A useful first step is just to resolve "$var" alone, without any of the dereferencing complexity. C function calls could do the rest of pointer traversal etc. for now.
scalar rvalue reads from target are working now. no lvalues, no structure-pointer-members.
a basic, no-bounds-checking, read-only version of member/array/pointer access is now present; crash your machine with it at your leisure..
generic work item complete; bugs being reported separately