Mercurial Hosting > luan
view core/src/luan/impl/SetLocalVar.java @ 652:067d9470184d
compile SetStmt and ForStmt
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 Apr 2016 23:26:06 -0600 |
parents | e91e476186c7 |
children |
line wrap: on
line source
package luan.impl; final class SetLocalVar implements Settable { private final int index; SetLocalVar(int index) { if( index < 0 ) throw new RuntimeException(); this.index = index; } @Override public void set(LuanStateImpl luan,Object value) { luan.stackSet( index, value ); } }