ohua-dev / ohuac

A standalone compiler for ohua algorithms
Eclipse Public License 1.0
1 stars 0 forks source link

Deal better with fields #26

Open JustusAdam opened 3 years ago

JustusAdam commented 3 years ago

ATM a field access x.y is simply rewritten to y(x) and also y does not need to be a field, but may be resolved from scope, for instance let y = ...; x.y would resolve the field as the let-bound y. This can lead to the hilarious situation where let thing = ...; thing.thing is translated to BindState (Var "thing") (Var "thing") which is obvious nonsense.