Mercurial Hosting > luan
comparison src/luan/interp/TableExpr.java @ 40:e3624b7cd603
implement stack trace
git-svn-id: https://luan-java.googlecode.com/svn/trunk@41 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 21 Dec 2012 10:45:54 +0000 |
parents | e51906de0f11 |
children | 57054fa43189 |
comparison
equal
deleted
inserted
replaced
39:e5bcb1eeafc1 | 40:e3624b7cd603 |
---|---|
1 package luan.interp; | 1 package luan.interp; |
2 | 2 |
3 import luan.LuaException; | 3 import luan.LuaException; |
4 import luan.LuaTable; | 4 import luan.LuaTable; |
5 import luan.LuaNumber; | 5 import luan.LuaNumber; |
6 import luan.LuaSource; | |
6 | 7 |
7 | 8 |
8 final class TableExpr implements Expr { | 9 final class TableExpr extends CodeImpl implements Expr { |
9 | 10 |
10 static class Field { | 11 static class Field { |
11 final Expr key; | 12 final Expr key; |
12 final Expr value; | 13 final Expr value; |
13 | 14 |
18 } | 19 } |
19 | 20 |
20 private final Field[] fields; | 21 private final Field[] fields; |
21 private final Expressions expressions; | 22 private final Expressions expressions; |
22 | 23 |
23 TableExpr(Field[] fields,Expressions expressions) { | 24 TableExpr(LuaSource.Element se,Field[] fields,Expressions expressions) { |
25 super(se); | |
24 this.fields = fields; | 26 this.fields = fields; |
25 this.expressions = expressions; | 27 this.expressions = expressions; |
26 } | 28 } |
27 | 29 |
28 @Override public Object eval(LuaStateImpl lua) throws LuaException { | 30 @Override public Object eval(LuaStateImpl lua) throws LuaException { |