Ignore:
Timestamp:
Jun 7, 2012, 1:38:10 PM (8 years ago)
Author:
sam
Message:

orbital: some improvements to the mesh parser and error reporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/generated/gun-parser.h

    r1437 r1442  
    1 /* A Bison parser, made by GNU Bison 2.5.  */
     1/* A Bison parser, made by GNU Bison 2.4.2.  */
    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-2010 Free Software Foundation, Inc.
    66   
    77   This program is free software: you can redistribute it and/or modify
     
    4141#include <iostream>
    4242#include "stack.hh"
     43
     44
     45namespace orbital {
     46
     47/* Line 34 of lalr1.cc  */
     48#line 49 "generated/gun-parser.h"
     49  class position;
     50  class location;
     51
     52} // orbital
     53
     54/* Line 34 of lalr1.cc  */
     55#line 56 "generated/gun-parser.h"
     56
    4357#include "location.hh"
    4458
     
    6175#endif
    6276
     77/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
     78   If N is 0, then set CURRENT to the empty location which ends
     79   the previous symbol: RHS[0] (always defined).  */
     80
     81#ifndef YYLLOC_DEFAULT
     82# define YYLLOC_DEFAULT(Current, Rhs, N)                \
     83do {                                                    \
     84  if (N)                                                \
     85    {                                                   \
     86      (Current).begin = (Rhs)[1].begin;                 \
     87      (Current).end   = (Rhs)[N].end;                   \
     88    }                                                   \
     89  else                                                  \
     90    {                                                   \
     91      (Current).begin = (Current).end = (Rhs)[0].end;   \
     92    }                                                   \
     93} while (false)
     94#endif
     95
    6396
    6497namespace orbital {
    6598
    66 /* Line 35 of lalr1.cc  */
    67 #line 68 "generated/gun-parser.h"
     99/* Line 34 of lalr1.cc  */
     100#line 101 "generated/gun-parser.h"
    68101
    69102  /// A Bison parser.
     
    76109    {
    77110
    78 /* Line 35 of lalr1.cc  */
     111/* Line 34 of lalr1.cc  */
    79112#line 35 "gun-parser.y"
    80113
     
    84117
    85118
    86 /* Line 35 of lalr1.cc  */
    87 #line 88 "generated/gun-parser.h"
     119/* Line 34 of lalr1.cc  */
     120#line 121 "generated/gun-parser.h"
    88121    };
    89122#else
     
    188221    location_stack_type yylocation_stack_;
    189222
    190     /// Whether the given \c yypact_ value indicates a defaulted state.
    191     /// \param yyvalue   the value to check
    192     static bool yy_pact_value_is_default_ (int yyvalue);
    193 
    194     /// Whether the given \c yytable_ value indicates a syntax error.
    195     /// \param yyvalue   the value to check
    196     static bool yy_table_value_is_error_ (int yyvalue);
    197 
    198223    /// Internal symbol numbers.
    199224    typedef unsigned char token_number_type;
     
    203228    static const signed char yypact_ninf_;
    204229
    205     /// For a state, default reduction number.
     230    /// For a state, default rule to reduce.
    206231    /// Unless\a  yytable_ specifies something else to do.
    207232    /// Zero means the default is an error.
     
    234259#endif
    235260
     261#if YYERROR_VERBOSE
    236262    /// Convert the symbol name \a n to a form suitable for a diagnostic.
    237     static std::string yytnamerr_ (const char *n);
     263    virtual std::string yytnamerr_ (const char *n);
     264#endif
    238265
    239266#if YYDEBUG
     
    293320} // orbital
    294321
    295 /* Line 35 of lalr1.cc  */
    296 #line 297 "generated/gun-parser.h"
     322/* Line 34 of lalr1.cc  */
     323#line 324 "generated/gun-parser.h"
    297324
    298325
Note: See TracChangeset for help on using the changeset viewer.