Mercurial Hosting > luan
view core/src/luan/impl/GetLocalVar.java @ 665:41f8fdbc3a0a
compile modules
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 07 Apr 2016 17:06:22 -0600 |
parents | 859c0dedc8b6 |
children |
line wrap: on
line source
package luan.impl; final class GetLocalVar extends CodeImpl implements Expr { private final int index; GetLocalVar(int index) { if( index < 0 ) throw new RuntimeException(); this.index = index; } @Override public Object eval(LuanStateImpl luan) { return luan.stackGet(index); } }