@Override
    public ReturnStruct parse(String[] lines) throws InterpreterException {
        int i = 0;
        int c = 1;
        ArrayList<String> code = new ArrayList<String>();
        while (i < lines.length) {
            String line = Parser.clean(lines[i]);

            if (line.startsWith("if ") || line.startsWith("for ")
                    || line.startsWith("while ")
                    || line.startsWith("function ")) {
                c++;
            } else if (line.equals("end")) {
                c--;
            }

            if (c == 0) {
                code_ = code.toArray(new String[code.size()]);
                return new ReturnStruct(this, i + 1);
            }

            code.add(line);
            i++;
        }

        return new ReturnStruct(this, i + 1);
    }