view core/src/luan/impl/GetLocalVar.java @ 206:77365c9fdfe4

remove -> operator git-svn-id: https://luan-java.googlecode.com/svn/trunk@207 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 07 Jul 2014 23:55:52 +0000
parents 3dcb0f9bee82
children b48cfa14ba60
line wrap: on
line source

package luan.impl;

import luan.LuanSource;


final class GetLocalVar extends CodeImpl implements Expr {
	private final int index;

	GetLocalVar(LuanSource.Element se,int index) {
		super(se);
		this.index = index;
	}

	@Override public Object eval(LuanStateImpl luan) {
		return luan.stackGet(index);
	}
}