Mercurial Hosting > luan
comparison core/src/luan/impl/GetLocalVar.java @ 645:859c0dedc8b6
remove LuanSource
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 18:09:51 -0600 |
parents | 0742ac78fa69 |
children |
comparison
equal
deleted
inserted
replaced
644:ba1e318377c5 | 645:859c0dedc8b6 |
---|---|
1 package luan.impl; | 1 package luan.impl; |
2 | |
3 import luan.LuanElement; | |
4 | 2 |
5 | 3 |
6 final class GetLocalVar extends CodeImpl implements Expr { | 4 final class GetLocalVar extends CodeImpl implements Expr { |
7 private final int index; | 5 private final int index; |
8 | 6 |
9 GetLocalVar(LuanElement se,int index) { | 7 GetLocalVar(int index) { |
10 super(se); | |
11 if( index < 0 ) throw new RuntimeException(); | 8 if( index < 0 ) throw new RuntimeException(); |
12 this.index = index; | 9 this.index = index; |
13 } | 10 } |
14 | 11 |
15 @Override public Object eval(LuanStateImpl luan) { | 12 @Override public Object eval(LuanStateImpl luan) { |