return list;
}
private LList list(List<Object> tokens) {
LTupel list = new LTupel();
int balance = getParenthesisBalance(tokens, 1, "[", "]");
List<Object> sub = getSubListAndClear(tokens, 0, balance);
tokens.remove(0);
for(Object obj : sub) {
if(!obj.toString().equals(",")) {
List<Object> tmp = new ArrayList<>();
tmp.add(obj);
tmp.add(";");
LList element = parse(tmp);
list.add(element.get(0));
}
}
tokens.add(0, list);