public final void arrayInit() throws RecognitionException
    {
        
        AST ast1 = null, ast2 = null;
        
        try {
            // CPP.g:163:3: ( '{' varInit arrayInitEx '}' | '{' '}' )
            int alt10 = 2;
            int LA10_0 = this.input.LA(1);
            
            if ((LA10_0 == 28)) {
                int LA10_1 = this.input.LA(2);
                
                if ((LA10_1 == 29)) {
                    alt10 = 2;
                }
                else if ((((LA10_1 >= IDENTIFIER) && (LA10_1 <= FLOATING_POINT_LITERAL)) || (LA10_1 == 30)
                        || (LA10_1 == 42) || (LA10_1 == 44) || ((LA10_1 >= 80) && (LA10_1 <= 81)) || ((LA10_1 >= 84) && (LA10_1 <= 87)))) {
                    alt10 = 1;
                }
                else {
                    if (this.state.backtracking > 0) {
                        this.state.failed = true;
                        return;
                    }
                    NoViableAltException nvae = new NoViableAltException("", 10, 1, this.input);
                    
                    throw nvae;
                }
            }
            else {
                if (this.state.backtracking > 0) {
                    this.state.failed = true;
                    return;
                }
                NoViableAltException nvae = new NoViableAltException("", 10, 0, this.input);
                
                throw nvae;
            }
            switch (alt10)
            {
                case 1:
                    // CPP.g:163:5: '{' varInit arrayInitEx '}'
                {
                    this.match(this.input, 28, FOLLOW_28_in_arrayInit561);
                    if (this.state.failed) {
                        return;
                    }
                    this.pushFollow(FOLLOW_varInit_in_arrayInit568);
                    this.varInit();
                    
                    this.state._fsp--;
                    if (this.state.failed) {
                        return;
                    }
                    if (this.state.backtracking == 0) {
                        ast1 = this.out;
                        this.out = null;
                    }
                    this.pushFollow(FOLLOW_arrayInitEx_in_arrayInit576);
                    this.arrayInitEx();
                    
                    this.state._fsp--;
                    if (this.state.failed) {
                        return;
                    }
                    if (this.state.backtracking == 0) {
                        ast2 = this.out;
                        this.out = null;
                    }
                    this.match(this.input, 29, FOLLOW_29_in_arrayInit584);
                    if (this.state.failed) {
                        return;
                    }
                    if (this.state.backtracking == 0) {
                        this.out =
                                   new ArrayInitializerAST(new VarInitializerListAST((VarInitializerAST) ast1,
                                           (VarInitializerListAST) ast2));
                    }
                    
                }
                    break;
                case 2:
                    // CPP.g:168:5: '{' '}'
                {
                    this.match(this.input, 28, FOLLOW_28_in_arrayInit596);
                    if (this.state.failed) {
                        return;
                    }
                    this.match(this.input, 29, FOLLOW_29_in_arrayInit598);
                    if (this.state.failed) {
                        return;
                    }
                    if (this.state.backtracking == 0) {
                        this.out = new EmptyArrayInitializerAST();
                    }
                    
                }
                    break;
                
            }
        }
        catch (RecognitionException re) {
            this.reportError(re);
            this.recover(this.input, re);
        } finally {
        }
        return;
    }