Ignore:
Timestamp:
Jun 24, 2013, 12:53:25 AM (6 years ago)
Author:
sam
Message:

base: disable exceptions in Bison-generated parsers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/generated/lolfx-parser.h

    r2506 r2779  
    1 /* A Bison parser, made by GNU Bison 2.5.  */
     1/* A Bison parser, made by GNU Bison 2.7.12-4996.  */
    22
    33/* Skeleton interface for Bison LALR(1) parsers in C++
    44   
    5       Copyright (C) 2002-2011 Free Software Foundation, Inc.
     5      Copyright (C) 2002-2013 Free Software Foundation, Inc.
    66   
    77   This program is free software: you can redistribute it and/or modify
     
    3131   version 2.2 of Bison.  */
    3232
     33/**
     34 ** \file generated/lolfx-parser.h
     35 ** Define the lol::parser class.
     36 */
     37
    3338/* C++ LALR(1) parser skeleton written by Akim Demaille.  */
    3439
    35 #ifndef PARSER_HEADER_H
    36 # define PARSER_HEADER_H
     40#ifndef YY_LOL_GENERATED_LOLFX_PARSER_H_INCLUDED
     41# define YY_LOL_GENERATED_LOLFX_PARSER_H_INCLUDED
    3742
    3843
     
    4853#endif
    4954
    50 /* Enabling verbose error messages.  */
    51 #ifdef YYERROR_VERBOSE
    52 # undef YYERROR_VERBOSE
    53 # define YYERROR_VERBOSE 1
    54 #else
    55 # define YYERROR_VERBOSE 1
    56 #endif
    57 
    58 /* Enabling the token table.  */
    59 #ifndef YYTOKEN_TABLE
    60 # define YYTOKEN_TABLE 0
    61 #endif
    62 
    6355
    6456namespace lol {
    65 
    66 /* Line 35 of lalr1.cc  */
    67 #line 68 "generated/lolfx-parser.h"
     57/* Line 33 of lalr1.cc  */
     58#line 59 "generated/lolfx-parser.h"
    6859
    6960  /// A Bison parser.
     
    7566    union semantic_type
    7667    {
    77 
    78 /* Line 35 of lalr1.cc  */
    79 #line 34 "gpu/lolfx-parser.y"
     68/* Line 33 of lalr1.cc  */
     69#line 38 "gpu/lolfx-parser.y"
    8070
    8171    int ival;
     
    8575
    8676
    87 
    88 /* Line 35 of lalr1.cc  */
    89 #line 90 "generated/lolfx-parser.h"
     77/* Line 33 of lalr1.cc  */
     78#line 79 "generated/lolfx-parser.h"
    9079    };
    9180#else
     
    564553
    565554  private:
     555    /// This class is not copyable.
     556    LolFxParser (const LolFxParser&);
     557    LolFxParser& operator= (const LolFxParser&);
     558
    566559    /// Report a syntax error.
    567560    /// \param loc    where the syntax error is found.
     
    647640    static const unsigned short int yyr1_[];
    648641    /// For a rule, its RHS length.
    649     static const unsigned char yyr2_[];
    650 
    651 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
     642    static const unsigned char yyr2_[];
     643
     644    /// Convert the symbol name \a n to a form suitable for a diagnostic.
     645    static std::string yytnamerr_ (const char *n);
     646
     647
    652648    /// For a symbol, its name in clear.
    653649    static const char* const yytname_[];
    654 #endif
    655 
    656     /// Convert the symbol name \a n to a form suitable for a diagnostic.
    657     static std::string yytnamerr_ (const char *n);
    658 
    659650#if YYDEBUG
    660651    /// A type to store symbol numbers and -1.
     
    683674    /// \brief Reclaim the memory associated to a symbol.
    684675    /// \param yymsg        Why this token is reclaimed.
     676    ///                     If null, do not display the symbol, just free it.
    685677    /// \param yytype       The symbol type.
    686678    /// \param yyvaluep     Its semantic value.
     
    712704
    713705} // lol
    714 
    715 /* Line 35 of lalr1.cc  */
    716 #line 717 "generated/lolfx-parser.h"
    717 
    718 
    719 
    720 #endif /* ! defined PARSER_HEADER_H */
     706/* Line 33 of lalr1.cc  */
     707#line 708 "generated/lolfx-parser.h"
     708
     709
     710
     711#endif /* !YY_LOL_GENERATED_LOLFX_PARSER_H_INCLUDED  */
Note: See TracChangeset for help on using the changeset viewer.