~ubuntu-branches/ubuntu/karmic/bc/karmic

« back to all changes in this revision

Viewing changes to bc/bc.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-05 12:24:03 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20071205122403-rv1a7x90ktu1wl95
Tags: 1.06.94-3ubuntu1
* Merge with Debian; remaining changes:
  - Make bc/dc notice read and write errors on its input and output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
typedef union {
 
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 {
2
112
        char     *s_value;
3
113
        char      c_value;
4
114
        int       i_value;
5
115
        arg_list *a_value;
6
116
       } YYSTYPE;
7
 
#define ENDOFLINE       257
8
 
#define AND     258
9
 
#define OR      259
10
 
#define NOT     260
11
 
#define STRING  261
12
 
#define NAME    262
13
 
#define NUMBER  263
14
 
#define ASSIGN_OP       264
15
 
#define REL_OP  265
16
 
#define INCR_DECR       266
17
 
#define Define  267
18
 
#define Break   268
19
 
#define Quit    269
20
 
#define Length  270
21
 
#define Return  271
22
 
#define For     272
23
 
#define If      273
24
 
#define While   274
25
 
#define Sqrt    275
26
 
#define Else    276
27
 
#define Scale   277
28
 
#define Ibase   278
29
 
#define Obase   279
30
 
#define Auto    280
31
 
#define Read    281
32
 
#define Warranty        282
33
 
#define Halt    283
34
 
#define Last    284
35
 
#define Continue        285
36
 
#define Print   286
37
 
#define Limits  287
38
 
#define UNARY_MINUS     288
39
 
#define HistoryVar      289
40
 
 
 
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
41
123
 
42
124
extern YYSTYPE yylval;
 
125
 
 
126
 
 
127