public final void program() throws RecognitionException
    {
        
        AST ast1 = null;
        
        try {
            // CPP.g:30:3: ( declarationList )
            // CPP.g:30:5: declarationList
            {
                this.pushFollow(FOLLOW_declarationList_in_program59);
                this.declarationList();
                
                this.state._fsp--;
                if (this.state.failed) {
                    return;
                }
                if (this.state.backtracking == 0) {
                    ast1 = this.out;
                    this.out = new ProgramAST((DeclarationListAST) ast1);
                }
                
            }
            
        }
        catch (RecognitionException re) {
            this.reportError(re);
            this.recover(this.input, re);
        } finally {
        }
        return;
    }