Ignore:
Timestamp:
Nov 26, 2012, 11:54:01 AM (8 years ago)
Author:
touky
Message:

Added tsw (ToggleScaleWinding) command in EasyMesh Parser to make old-school celShading contour.

File:
1 edited

Legend:

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

    r1875 r2116  
    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 lol {
     46
     47/* Line 34 of lalr1.cc  */
     48#line 49 "generated/easymesh-parser.h"
     49  class position;
     50  class location;
     51
     52} // lol
     53
     54/* Line 34 of lalr1.cc  */
     55#line 56 "generated/easymesh-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 lol {
    6598
    66 /* Line 35 of lalr1.cc  */
    67 #line 68 "generated/easymesh-parser.h"
     99/* Line 34 of lalr1.cc  */
     100#line 101 "generated/easymesh-parser.h"
    68101
    69102  /// A Bison parser.
     
    76109    {
    77110
    78 /* Line 35 of lalr1.cc  */
     111/* Line 34 of lalr1.cc  */
    79112#line 36 "easymesh/easymesh-parser.y"
    80113
     
    86119
    87120
    88 /* Line 35 of lalr1.cc  */
    89 #line 90 "generated/easymesh-parser.h"
     121/* Line 34 of lalr1.cc  */
     122#line 123 "generated/easymesh-parser.h"
    90123    };
    91124#else
     
    119152     T_TRANSLATE = 275,
    120153     T_SCALE = 276,
    121      T_CHAMFER = 277,
    122      T_CYLINDER = 278,
    123      T_BOX = 279,
    124      T_SMOOTHCHAMFBOX = 280,
    125      T_FLATCHAMFBOX = 281,
    126      T_SPHERE = 282,
    127      T_CAPSULE = 283,
    128      T_STAR = 284,
    129      T_EXPANDEDSTAR = 285,
    130      T_DISC = 286,
    131      T_TRIANGLE = 287,
    132      T_QUAD = 288,
    133      T_COG = 289,
    134      T_TORUS = 290,
    135      T_ERROR = 291,
    136      NUMBER = 292,
    137      COLOR = 293
     154     T_TOGGLESCALEWINDING = 277,
     155     T_CHAMFER = 278,
     156     T_CYLINDER = 279,
     157     T_BOX = 280,
     158     T_SMOOTHCHAMFBOX = 281,
     159     T_FLATCHAMFBOX = 282,
     160     T_SPHERE = 283,
     161     T_CAPSULE = 284,
     162     T_STAR = 285,
     163     T_EXPANDEDSTAR = 286,
     164     T_DISC = 287,
     165     T_TRIANGLE = 288,
     166     T_QUAD = 289,
     167     T_COG = 290,
     168     T_TORUS = 291,
     169     T_ERROR = 292,
     170     NUMBER = 293,
     171     COLOR = 294
    138172   };
    139173
     
    209243    location_stack_type yylocation_stack_;
    210244
    211     /// Whether the given \c yypact_ value indicates a defaulted state.
    212     /// \param yyvalue   the value to check
    213     static bool yy_pact_value_is_default_ (int yyvalue);
    214 
    215     /// Whether the given \c yytable_ value indicates a syntax error.
    216     /// \param yyvalue   the value to check
    217     static bool yy_table_value_is_error_ (int yyvalue);
    218 
    219245    /// Internal symbol numbers.
    220246    typedef unsigned char token_number_type;
     
    224250    static const signed char yypact_ninf_;
    225251
    226     /// For a state, default reduction number.
     252    /// For a state, default rule to reduce.
    227253    /// Unless\a  yytable_ specifies something else to do.
    228254    /// Zero means the default is an error.
     
    255281#endif
    256282
     283#if YYERROR_VERBOSE
    257284    /// Convert the symbol name \a n to a form suitable for a diagnostic.
    258     static std::string yytnamerr_ (const char *n);
     285    virtual std::string yytnamerr_ (const char *n);
     286#endif
    259287
    260288#if YYDEBUG
     
    314342} // lol
    315343
    316 /* Line 35 of lalr1.cc  */
    317 #line 318 "generated/easymesh-parser.h"
     344/* Line 34 of lalr1.cc  */
     345#line 346 "generated/easymesh-parser.h"
    318346
    319347
Note: See TracChangeset for help on using the changeset viewer.