| 
    Bridge++
    Ver. 1.2.x
    
   | 
 
A Bison parser. More...
#include <evalexpr_parser.h>
Classes | |
| union | semantic_type | 
| Symbol semantic values.  More... | |
| struct | token | 
| Tokens.  More... | |
Public Types | |
| typedef location | location_type | 
| Symbol locations.  More... | |
| typedef token::yytokentype | token_type | 
| Token type.  More... | |
| typedef int | debug_level_type | 
| Type for debugging levels.  More... | |
Public Member Functions | |
| parser (EvalExpr &driver_yyarg) | |
| Build a parser object.  More... | |
| virtual | ~parser () | 
| virtual int | parse () | 
| std::ostream & | debug_stream () const | 
| The current debugging stream.  More... | |
| void | set_debug_stream (std::ostream &) | 
| Set the current debugging stream.  More... | |
| debug_level_type | debug_level () const | 
| The current debugging level.  More... | |
| void | set_debug_level (debug_level_type l) | 
| Set the current debugging level.  More... | |
Private Types | |
| typedef int | state_type | 
| State numbers.  More... | |
| typedef stack< state_type > | state_stack_type | 
| State stack type.  More... | |
| typedef stack< semantic_type > | semantic_stack_type | 
| Semantic value stack type.  More... | |
| typedef stack< location_type > | location_stack_type | 
| location stack type.  More... | |
| typedef unsigned char | token_number_type | 
| Internal symbol numbers.  More... | |
| typedef signed char | rhs_number_type | 
| A type to store symbol numbers and -1.  More... | |
Private Member Functions | |
| virtual void | error (const location_type &loc, const std::string &msg) | 
| virtual std::string | yysyntax_error_ (int yystate, int tok) | 
| virtual void | yy_symbol_value_print_ (int yytype, const semantic_type *yyvaluep, const location_type *yylocationp) | 
| Report a symbol value on the debug stream.  More... | |
| virtual void | yy_symbol_print_ (int yytype, const semantic_type *yyvaluep, const location_type *yylocationp) | 
| Report a symbol on the debug stream.  More... | |
| virtual void | yy_reduce_print_ (int r) | 
| Report on the debug stream that the rule r is going to be reduced.  More... | |
| virtual void | yystack_print_ () | 
| Print the state stack on the debug stream.  More... | |
| token_number_type | yytranslate_ (int t) | 
| Convert a scanner token number t to a symbol number.  More... | |
| void | yydestruct_ (const char *yymsg, int yytype, semantic_type *yyvaluep, location_type *yylocationp) | 
| Reclaim the memory associated to a symbol.  More... | |
| void | yypop_ (unsigned int n=1) | 
| Pop n symbols the three stacks.  More... | |
Static Private Member Functions | |
| static bool | yy_pact_value_is_default_ (int yyvalue) | 
| static bool | yy_table_value_is_error_ (int yyvalue) | 
| static std::string | yytnamerr_ (const char *n) | 
| Convert the symbol name n to a form suitable for a diagnostic.  More... | |
Private Attributes | |
| state_stack_type | yystate_stack_ | 
| The state stack.  More... | |
| semantic_stack_type | yysemantic_stack_ | 
| The semantic value stack.  More... | |
| location_stack_type | yylocation_stack_ | 
| The location stack.  More... | |
| int | yydebug_ | 
| std::ostream * | yycdebug_ | 
| EvalExpr & | driver | 
Static Private Attributes | |
| static const signed char | yypact_ [] | 
| For a state, the index in yytable_ of its portion.  More... | |
| static const signed char | yypact_ninf_ = -11 | 
| static const unsigned char | yydefact_ [] | 
| static const signed char | yypgoto_ [] | 
| static const signed char | yydefgoto_ [] | 
| static const unsigned char | yytable_ [] | 
| static const signed char | yytable_ninf_ = -1 | 
| static const signed char | yycheck_ [] | 
| static const unsigned char | yystos_ [] | 
| For a state, its accessing symbol.  More... | |
| static const unsigned char | yyr1_ [] | 
| For a rule, its LHS.  More... | |
| static const unsigned char | yyr2_ [] | 
| For a rule, its RHS length.  More... | |
| static const char *const | yytname_ [] | 
| For a symbol, its name in clear.  More... | |
| static const rhs_number_type | yyrhs_ [] | 
| A `-1'-separated list of the rules' RHS.  More... | |
| static const unsigned char | yyprhs_ [] | 
| For each rule, the index of the first RHS symbol in yyrhs_.  More... | |
| static const unsigned char | yyrline_ [] | 
| For each rule, its source line number.  More... | |
| static const unsigned short int | yytoken_number_ [] | 
| For each scanner token number, its symbol number.  More... | |
| static const int | yyeof_ = 0 | 
| static const int | yylast_ = 42 | 
| static const int | yynnts_ = 3 | 
| static const int | yyempty_ = -2 | 
| static const int | yyfinal_ = 12 | 
| static const int | yyterror_ = 1 | 
| static const int | yyerrcode_ = 256 | 
| static const int | yyntokens_ = 15 | 
| static const unsigned int | yyuser_token_number_max_ = 262 | 
| static const token_number_type | yyundef_token_ = 2 | 
A Bison parser.
Definition at line 74 of file evalexpr_parser.h.
| typedef int yy::parser::debug_level_type | 
Type for debugging levels.
Definition at line 128 of file evalexpr_parser.h.
      
  | 
  private | 
location stack type.
Definition at line 175 of file evalexpr_parser.h.
| typedef location yy::parser::location_type | 
Symbol locations.
Definition at line 95 of file evalexpr_parser.h.
      
  | 
  private | 
A type to store symbol numbers and -1.
Definition at line 233 of file evalexpr_parser.h.
      
  | 
  private | 
Semantic value stack type.
Definition at line 173 of file evalexpr_parser.h.
      
  | 
  private | 
State stack type.
Definition at line 171 of file evalexpr_parser.h.
      
  | 
  private | 
State numbers.
Definition at line 169 of file evalexpr_parser.h.
      
  | 
  private | 
Internal symbol numbers.
Definition at line 193 of file evalexpr_parser.h.
Token type.
Definition at line 110 of file evalexpr_parser.h.
| yy::parser::parser | ( | EvalExpr & | driver_yyarg | ) | 
Build a parser object.
Definition at line 197 of file evalexpr_parser.cpp.
      
  | 
  virtual | 
Definition at line 208 of file evalexpr_parser.cpp.
| parser::debug_level_type yy::parser::debug_level | ( | ) | const | 
The current debugging level.
Definition at line 333 of file evalexpr_parser.cpp.
| std::ostream & yy::parser::debug_stream | ( | ) | const | 
The current debugging stream.
Definition at line 319 of file evalexpr_parser.cpp.
      
  | 
  privatevirtual | 
Report a syntax error.
| loc | where the syntax error is found. | 
| msg | a description of the syntax error. | 
Definition at line 1159 of file evalexpr_parser.cpp.
      
  | 
  virtual | 
Parse.
Lookahead and lookahead in internal form.
Semantic value of the lookahead.
Location of the lookahead.
The locations where the error started and ended.
$$.
$.
Definition at line 363 of file evalexpr_parser.cpp.
| void yy::parser::set_debug_level | ( | debug_level_type | l | ) | 
Set the current debugging level.
Definition at line 340 of file evalexpr_parser.cpp.
| void yy::parser::set_debug_stream | ( | std::ostream & | o | ) | 
Set the current debugging stream.
Definition at line 326 of file evalexpr_parser.cpp.
      
  | 
  inlinestaticprivate | 
Whether the given yypact_ value indicates a defaulted state. 
| yyvalue | the value to check | 
Definition at line 349 of file evalexpr_parser.cpp.
      
  | 
  privatevirtual | 
Report on the debug stream that the rule r is going to be reduced.
Definition at line 1073 of file evalexpr_parser.cpp.
      
  | 
  privatevirtual | 
Report a symbol on the debug stream.
| yytype | The token type. | 
| yyvaluep | Its semantic value. | 
| yylocationp | Its location. | 
Definition at line 266 of file evalexpr_parser.cpp.
      
  | 
  inlineprivatevirtual | 
Report a symbol value on the debug stream.
| yytype | The token type. | 
| yyvaluep | Its semantic value. | 
| yylocationp | Its location. | 
Definition at line 219 of file evalexpr_parser.cpp.
      
  | 
  inlinestaticprivate | 
Whether the given yytable_ value indicates a syntax error. 
| yyvalue | the value to check | 
Definition at line 356 of file evalexpr_parser.cpp.
      
  | 
  inlineprivate | 
Reclaim the memory associated to a symbol.
| yymsg | Why this token is reclaimed. If null, do not display the symbol, just free it. | 
| yytype | The symbol type. | 
| yyvaluep | Its semantic value. | 
| yylocationp | Its location. | 
Definition at line 280 of file evalexpr_parser.cpp.
      
  | 
  inlineprivate | 
Pop n symbols the three stacks.
Definition at line 309 of file evalexpr_parser.cpp.
      
  | 
  privatevirtual | 
Print the state stack on the debug stream.
Definition at line 1060 of file evalexpr_parser.cpp.
      
  | 
  privatevirtual | 
Generate an error message.
| state | the state where the error occurred. | 
| tok | the lookahead token. | 
Definition at line 821 of file evalexpr_parser.cpp.
      
  | 
  staticprivate | 
Convert the symbol name n to a form suitable for a diagnostic.
Definition at line 162 of file evalexpr_parser.cpp.
      
  | 
  private | 
Convert a scanner token number t to a symbol number.
Definition at line 1095 of file evalexpr_parser.cpp.
      
  | 
  private | 
Definition at line 284 of file evalexpr_parser.h.
      
  | 
  private | 
Definition at line 250 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 215 of file evalexpr_parser.h.
      
  | 
  private | 
Definition at line 249 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For a state, default reduction number. Unlessyytable_ specifies something else to do. Zero means the default is an error.
Definition at line 202 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 205 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 275 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 271 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 278 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 276 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 273 of file evalexpr_parser.h.
      
  | 
  private | 
The location stack.
Definition at line 182 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 274 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 279 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For a state, the index in yytable_ of its portion.
Definition at line 196 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 197 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 204 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For each rule, the index of the first RHS symbol in yyrhs_.
Definition at line 237 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For a rule, its LHS.
Definition at line 221 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For a rule, its RHS length.
Definition at line 223 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
A `-1'-separated list of the rules' RHS.
Definition at line 235 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For each rule, its source line number.
Definition at line 239 of file evalexpr_parser.h.
      
  | 
  private | 
The semantic value stack.
Definition at line 180 of file evalexpr_parser.h.
      
  | 
  private | 
The state stack.
Definition at line 178 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For a state, its accessing symbol.
Definition at line 218 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
What to do in a state. yytable_[yypact_[s]]: what to do in state s.
Definition at line 212 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 213 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 277 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For a symbol, its name in clear.
Definition at line 230 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
For each scanner token number, its symbol number.
Definition at line 241 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 281 of file evalexpr_parser.h.
      
  | 
  staticprivate | 
Definition at line 280 of file evalexpr_parser.h.