public final void varListRest() throws RecognitionException
    {
        
        AST ast1 = null, ast2 = null;
        
        try {
            // CPP.g:94:3: ( ',' var varListRest | )
            int alt4 = 2;
            int LA4_0 = this.input.LA(1);
            
            if ((LA4_0 == 24)) {
                alt4 = 1;
            }
            else if (((LA4_0 == EOF) || (LA4_0 == 23))) {
                alt4 = 2;
            }
            else {
                if (this.state.backtracking > 0) {
                    this.state.failed = true;
                    return;
                }
                NoViableAltException nvae = new NoViableAltException("", 4, 0, this.input);
                
                throw nvae;
            }
            switch (alt4)
            {
                case 1:
                    // CPP.g:94:5: ',' var varListRest
                {
                    this.match(this.input, 24, FOLLOW_24_in_varListRest263);
                    if (this.state.failed) {
                        return;
                    }
                    this.pushFollow(FOLLOW_var_in_varListRest265);
                    this.var();
                    
                    this.state._fsp--;
                    if (this.state.failed) {
                        return;
                    }
                    if (this.state.backtracking == 0) {
                        ast1 = this.out;
                        this.out = null;
                    }
                    this.pushFollow(FOLLOW_varListRest_in_varListRest273);
                    this.varListRest();
                    
                    this.state._fsp--;
                    if (this.state.failed) {
                        return;
                    }
                    if (this.state.backtracking == 0) {
                        ast2 = this.out;
                        this.out = null;
                    }
                    if (this.state.backtracking == 0) {
                        this.out = new DeclarationListAST((DeclarationAST) ast1, (DeclarationListAST) ast2);
                    }
                    
                }
                    break;
                case 2:
                    // CPP.g:97:5:
                {
                    if (this.state.backtracking == 0) {
                        this.out = new EmptyDeclarationListAST();
                        this.in = this.out;
                    }
                    
                }
                    break;
                
            }
        }
        catch (RecognitionException re) {
            this.reportError(re);
            this.recover(this.input, re);
        } finally {
        }
        return;
    }