Mercurial Hosting > luan
view core/src/luan/impl/GetLocalVar.java @ 584:0742ac78fa69
add Luan.load_theme
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 12 Aug 2015 05:21:21 -0600 |
parents | b48cfa14ba60 |
children | 859c0dedc8b6 |
line wrap: on
line source
package luan.impl; import luan.LuanElement; final class GetLocalVar extends CodeImpl implements Expr { private final int index; GetLocalVar(LuanElement se,int index) { super(se); if( index < 0 ) throw new RuntimeException(); this.index = index; } @Override public Object eval(LuanStateImpl luan) { return luan.stackGet(index); } }