public boolean checkValidate() {
        boolean coma = false, parallel = false, openTok_brace = false, first = true;
        int outNum = 0, inNum = 0;
//        while(lex.nextToken() != null) {
            while(!lex.End()) {
                lex.nextToken();
            Token token = lex.currentToken();
            
            if (openTok_brace) {
                inNum = token.getInt();
                if (!parallel && inNum != outNum && !first)
                    return false;
                openTok_brace = false;
                parallel = false;
                outNum = inNum = 0;
                first = false;
            }
            
            if (coma) {
                outNum = token.getInt();
                coma = false;
            }
            
            if (token.getType() == typeToken.comma)
                coma = true;
            if (token.getType() == typeToken.ParallelSign)
                parallel = true;
            if (token.getType() == typeToken.openTok_brace)
                openTok_brace = true;
            
        }
        return true;
    }