"Fossies" - the Fresh Open Source Software Archive

Member "bc-1.06.95/bc/bc.h" (5 Sep 2006, 3044 Bytes) of package /linux/misc/old/bc-1.06.95.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "bc.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.06.95_vs_1.07.

    1 /* A Bison parser, made by GNU Bison 2.1.  */
    2 
    3 /* Skeleton parser for Yacc-like parsing with Bison,
    4    Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
    5 
    6    This program is free software; you can redistribute it and/or modify
    7    it under the terms of the GNU General Public License as published by
    8    the Free Software Foundation; either version 2, or (at your option)
    9    any later version.
   10 
   11    This program is distributed in the hope that it will be useful,
   12    but WITHOUT ANY WARRANTY; without even the implied warranty of
   13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14    GNU General Public License for more details.
   15 
   16    You should have received a copy of the GNU General Public License
   17    along with this program; if not, write to the Free Software
   18    Foundation, Inc., 51 Franklin Street, Fifth Floor,
   19    Boston, MA 02110-1301, USA.  */
   20 
   21 /* As a special exception, when this file is copied by Bison into a
   22    Bison output file, you may use that output file without restriction.
   23    This special exception was added by the Free Software Foundation
   24    in version 1.24 of Bison.  */
   25 
   26 /* Tokens.  */
   27 #ifndef YYTOKENTYPE
   28 # define YYTOKENTYPE
   29    /* Put the tokens into the symbol table, so that GDB and other debuggers
   30       know about them.  */
   31    enum yytokentype {
   32      ENDOFLINE = 258,
   33      AND = 259,
   34      OR = 260,
   35      NOT = 261,
   36      STRING = 262,
   37      NAME = 263,
   38      NUMBER = 264,
   39      ASSIGN_OP = 265,
   40      REL_OP = 266,
   41      INCR_DECR = 267,
   42      Define = 268,
   43      Break = 269,
   44      Quit = 270,
   45      Length = 271,
   46      Return = 272,
   47      For = 273,
   48      If = 274,
   49      While = 275,
   50      Sqrt = 276,
   51      Else = 277,
   52      Scale = 278,
   53      Ibase = 279,
   54      Obase = 280,
   55      Auto = 281,
   56      Read = 282,
   57      Random = 283,
   58      Warranty = 284,
   59      Halt = 285,
   60      Last = 286,
   61      Continue = 287,
   62      Print = 288,
   63      Limits = 289,
   64      UNARY_MINUS = 290,
   65      HistoryVar = 291,
   66      Void = 292
   67    };
   68 #endif
   69 /* Tokens.  */
   70 #define ENDOFLINE 258
   71 #define AND 259
   72 #define OR 260
   73 #define NOT 261
   74 #define STRING 262
   75 #define NAME 263
   76 #define NUMBER 264
   77 #define ASSIGN_OP 265
   78 #define REL_OP 266
   79 #define INCR_DECR 267
   80 #define Define 268
   81 #define Break 269
   82 #define Quit 270
   83 #define Length 271
   84 #define Return 272
   85 #define For 273
   86 #define If 274
   87 #define While 275
   88 #define Sqrt 276
   89 #define Else 277
   90 #define Scale 278
   91 #define Ibase 279
   92 #define Obase 280
   93 #define Auto 281
   94 #define Read 282
   95 #define Random 283
   96 #define Warranty 284
   97 #define Halt 285
   98 #define Last 286
   99 #define Continue 287
  100 #define Print 288
  101 #define Limits 289
  102 #define UNARY_MINUS 290
  103 #define HistoryVar 291
  104 #define Void 292
  105 
  106 
  107 
  108 
  109 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  110 #line 54 "bc.y"
  111 typedef union YYSTYPE {
  112     char     *s_value;
  113     char      c_value;
  114     int   i_value;
  115     arg_list *a_value;
  116        } YYSTYPE;
  117 /* Line 1447 of yacc.c.  */
  118 #line 119 "bc.h"
  119 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  120 # define YYSTYPE_IS_DECLARED 1
  121 # define YYSTYPE_IS_TRIVIAL 1
  122 #endif
  123 
  124 extern YYSTYPE yylval;
  125 
  126 
  127