bc.c File Reference

#include "bcdefs.h"
#include "global.h"
#include "proto.h"

Include dependency graph for bc.c:

Go to the source code of this file.

Data Structures

union  YYSTYPE

Defines

#define YYBYACC   1
#define YYMAJOR   1
#define YYMINOR   9
#define yyclearin   (yychar=(-1))
#define yyerrok   (yyerrflag=0)
#define YYRECOVERING   (yyerrflag!=0)
#define YYPREFIX   "yy"
#define NEWLINE   257
#define AND   258
#define OR   259
#define NOT   260
#define STRING   261
#define NAME   262
#define NUMBER   263
#define MUL_OP   264
#define ASSIGN_OP   265
#define REL_OP   266
#define INCR_DECR   267
#define Define   268
#define Break   269
#define Quit   270
#define Length   271
#define Return   272
#define For   273
#define If   274
#define While   275
#define Sqrt   276
#define Else   277
#define Scale   278
#define Ibase   279
#define Obase   280
#define Auto   281
#define Read   282
#define Warranty   283
#define Halt   284
#define Last   285
#define Continue   286
#define Print   287
#define Limits   288
#define UNARY_MINUS   289
#define YYERRCODE   256
#define YYTABLESIZE   1113
#define YYFINAL   1
#define YYDEBUG   0
#define YYMAXTOKEN   289
#define YYSTACKSIZE   500
#define YYMAXDEPTH   500
#define yystacksize   YYSTACKSIZE
#define YYABORT   goto yyabort
#define YYREJECT   goto yyabort
#define YYACCEPT   goto yyaccept
#define YYERROR   goto yyerrlab

Functions

int yyparse ()

Variables

static char yysccsid [] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"
short yylhs []
short yylen []
short yydefred []
short yydgoto []
short yysindex []
short yyrindex []
short yygindex []
short yytable []
short yycheck []
int yydebug
int yynerrs
int yyerrflag
int yychar
short * yyssp
YYSTYPEyyvsp
YYSTYPE yyval
YYSTYPE yylval
short yyss [YYSTACKSIZE]
YYSTYPE yyvs [YYSTACKSIZE]


Define Documentation

#define AND   258
 

Definition at line 53 of file bc.c.

#define ASSIGN_OP   265
 

Definition at line 60 of file bc.c.

#define Auto   281
 

Definition at line 76 of file bc.c.

#define Break   269
 

Definition at line 64 of file bc.c.

#define Continue   286
 

Definition at line 81 of file bc.c.

#define Define   268
 

Definition at line 63 of file bc.c.

Referenced by gettable(), main(), and parse().

#define Else   277
 

Definition at line 72 of file bc.c.

#define For   273
 

Definition at line 68 of file bc.c.

#define Halt   284
 

Definition at line 79 of file bc.c.

#define Ibase   279
 

Definition at line 74 of file bc.c.

#define If   274
 

Definition at line 69 of file bc.c.

#define INCR_DECR   267
 

Definition at line 62 of file bc.c.

#define Last   285
 

Definition at line 80 of file bc.c.

#define Length   271
 

Definition at line 66 of file bc.c.

Referenced by insert_string(), readline(), and rl_check_ints().

#define Limits   288
 

Definition at line 83 of file bc.c.

#define MUL_OP   264
 

Definition at line 59 of file bc.c.

#define NAME   262
 

Definition at line 57 of file bc.c.

Referenced by ctags(), and lex_gettoken().

#define NEWLINE   257
 

Definition at line 52 of file bc.c.

Referenced by columns(), readline(), and redisplay().

#define NOT   260
 

Definition at line 55 of file bc.c.

#define NUMBER   263
 

Definition at line 58 of file bc.c.

#define Obase   280
 

Definition at line 75 of file bc.c.

#define OR   259
 

Definition at line 54 of file bc.c.

#define Print   287
 

Definition at line 82 of file bc.c.

Referenced by getendif(), main(), and parse().

#define Quit   270
 

Definition at line 65 of file bc.c.

#define Read   282
 

Definition at line 77 of file bc.c.

Referenced by getsize(), and writedata().

#define REL_OP   266
 

Definition at line 61 of file bc.c.

#define Return   272
 

Definition at line 67 of file bc.c.

Referenced by Jump().

#define Scale   278
 

Definition at line 73 of file bc.c.

Referenced by Findscale().

#define Sqrt   276
 

Definition at line 71 of file bc.c.

#define STRING   261
 

Definition at line 56 of file bc.c.

#define UNARY_MINUS   289
 

Definition at line 84 of file bc.c.

#define Warranty   283
 

Definition at line 78 of file bc.c.

#define While   275
 

Definition at line 70 of file bc.c.

#define YYABORT   goto yyabort
 

Definition at line 550 of file bc.c.

#define YYACCEPT   goto yyaccept
 

Definition at line 552 of file bc.c.

#define YYBYACC   1
 

Definition at line 4 of file bc.c.

#define yyclearin   (yychar=(-1))
 

Definition at line 7 of file bc.c.

#define YYDEBUG   0
 

Definition at line 410 of file bc.c.

Referenced by yyparse().

#define YYERRCODE   256
 

Definition at line 85 of file bc.c.

Referenced by collect(), and yyparse().

#define yyerrok   (yyerrflag=0)
 

Definition at line 8 of file bc.c.

#define YYERROR   goto yyerrlab
 

Definition at line 553 of file bc.c.

#define YYFINAL   1
 

Definition at line 408 of file bc.c.

#define YYMAJOR   1
 

Definition at line 5 of file bc.c.

#define YYMAXDEPTH   500
 

Definition at line 536 of file bc.c.

#define YYMAXTOKEN   289
 

Definition at line 412 of file bc.c.

Referenced by yyparse().

#define YYMINOR   9
 

Definition at line 6 of file bc.c.

#define YYPREFIX   "yy"
 

Definition at line 10 of file bc.c.

Referenced by yyparse().

#define YYRECOVERING   (yyerrflag!=0)
 

Definition at line 9 of file bc.c.

#define YYREJECT   goto yyabort
 

Definition at line 551 of file bc.c.

#define yystacksize   YYSTACKSIZE
 

Definition at line 549 of file bc.c.

Referenced by yyparse().

#define YYSTACKSIZE   500
 

Definition at line 535 of file bc.c.

#define YYTABLESIZE   1113
 

Definition at line 179 of file bc.c.

Referenced by yyparse().


Function Documentation

int yyparse  ) 
 

Definition at line 555 of file bc.c.

References getenv(), printf, yychar, yycheck, YYDEBUG, yydebug, yydefred, YYERRCODE, yyerrflag, yyerror(), yylex(), yylval, YYMAXTOKEN, yynerrs, YYPREFIX, yyrindex, yysindex, yyss, yyssp, yystacksize, yytable, YYTABLESIZE, yyvs, and yyvsp.

Referenced by main(), onecommand(), and run().


Variable Documentation

int yychar
 

Definition at line 542 of file bc.c.

Referenced by yyparse().

short yycheck[]
 

Definition at line 294 of file bc.c.

Referenced by yyparse().

int yydebug
 

Definition at line 539 of file bc.c.

Referenced by yyparse().

short yydefred[]
 

Initial value:

 {                                      1,
    0,    0,    0,   21,    0,   83,    0,    0,   22,   24,
    0,    0,   28,    0,   35,    0,    0,   94,   95,    0,
   18,   25,   97,   23,   39,   19,    0,    0,    0,    0,
    0,    2,    0,   16,    4,    7,    5,   17,    0,    0,
    0,    0,   96,   86,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,   81,    0,    0,    0,   11,   71,
   73,    0,    0,    0,    0,    0,   69,   87,    3,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,   91,   43,    0,   40,    0,   84,
    0,    0,   38,    0,    0,    0,    0,    0,    0,    0,
    0,    8,    0,   85,    0,   93,    0,    0,    0,   88,
   27,    0,    0,   33,    0,   89,   90,    0,   13,   15,
    0,    0,    0,   62,    0,    0,    0,    0,    0,   29,
    0,    0,   42,    0,   56,    0,    0,    0,    0,    0,
   64,    0,    0,    0,   46,   34,   37,    0,   48,   58,
   30,    0,    0,    0,    0,   47,   53,   54,    0,    0,
    0,   31,   49,    0,   32,
}

Definition at line 110 of file bc.c.

Referenced by yyparse().

short yydgoto[]
 

Initial value:

 {                                       1,
   30,   79,   31,  113,  108,  149,  109,   73,   74,   32,
   33,   58,   34,   35,   59,   48,  138,  155,  164,  131,
  146,   50,  132,   88,   54,   89,  152,  154,  101,   94,
   95,
}

Definition at line 129 of file bc.c.

int yyerrflag
 

Definition at line 541 of file bc.c.

Referenced by yyparse().

short yygindex[]
 

Initial value:

 {                                      0,
  958,    0,  104, -118,    0,    0,  -35,    0,    0,    0,
    0,  -34,   22,    0,   15,    0,    0,    0,    0,    0,
    0,    0,    0,   -1,    0,    0,    0,    0,    0,    0,
    0,
}

Definition at line 173 of file bc.c.

short yylen[]
 

Initial value:

 {                                         2,
    0,    2,    2,    1,    2,    0,    1,    3,    2,    0,
    1,    2,    3,    2,    3,    1,    2,    1,    1,    1,
    1,    1,    1,    1,    1,    1,    4,    0,    0,    0,
    0,   13,    0,    7,    0,    0,    7,    3,    0,    3,
    1,    3,    1,    1,    0,    0,    3,    0,   12,    0,
    1,    0,    3,    3,    1,    3,    3,    5,    0,    1,
    1,    3,    3,    5,    0,    1,    0,    1,    0,    4,
    0,    4,    0,    4,    2,    3,    3,    3,    3,    3,
    2,    1,    1,    3,    4,    2,    2,    4,    4,    4,
    3,    1,    4,    1,    1,    1,    1,
}

Definition at line 98 of file bc.c.

short yylhs[]
 

Initial value:

 {                                        -1,
    0,    0,   10,   10,   10,   11,   11,   11,   11,   12,
   12,   12,   12,   12,   12,   15,   15,   13,   13,   13,
   13,   13,   13,   13,   13,   13,   13,   16,   17,   18,
   19,   13,   20,   13,   22,   23,   13,   13,   25,   13,
   24,   24,   26,   26,   21,   27,   21,   28,   14,    5,
    5,    6,    6,    6,    7,    7,    7,    7,    8,    8,
    9,    9,    9,    9,    4,    4,    2,    2,   29,    1,
   30,    1,   31,    1,    1,    1,    1,    1,    1,    1,
    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    1,    3,    3,    3,    3,    3,    3,
}

Definition at line 86 of file bc.c.

YYSTYPE yylval
 

Definition at line 546 of file bc.c.

Referenced by command(), diag(), pattern(), synio(), wordlist(), yylex(), and yyparse().

int yynerrs
 

Definition at line 540 of file bc.c.

Referenced by onecommand(), run(), yyerror(), and yyparse().

short yyrindex[]
 

Initial value:

 {                                      0,
  -16,    0,    0,    0,  409,    0,    0,    0,    0,    0,
    0,  -58,    0,    0,    0,    0,  426,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,  -50,   46,
  470,    0,    0,    0,    0,    0,    0,    0,  661,   56,
    0,  525,    0,    0,    0,    0,   59,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,   -6,
  705,    7,    0,   60,    0,   61,    0,   63,    0,   49,
    0,    0,    0,    0,    0,    0,   17,    0,   78,    0,
  -47,  -45,    0,    0,    0,  537,  440,  620,  637,  594,
    0,    0,    0,    0,    0,    0,  -33,    0,   66,    0,
    0,  -19,    0,    0,   68,    0,    0,    0,    0,    0,
  667,  680,  508,    0,  705,   18,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,  -31,   49,  -44,    0,
    0,  -40,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    1,   69,    0,    0,    0,    0,    0,
   13,    0,    0,    0,    0,
}

Definition at line 154 of file bc.c.

Referenced by yyparse().

char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" [static]
 

Definition at line 2 of file bc.c.

short yysindex[]
 

Initial value:

 {                                      0,
   -7,   58,  212,    0,  -22,    0, -233, -241,    0,    0,
   -8,   -5,    0,   -4,    0,    2,    4,    0,    0,    9,
    0,    0,    0,    0,    0,    0,  212,  212,   91,  725,
 -240,    0,  -29,    0,    0,    0,    0,    0,   84,  245,
  212,  -57,    0,    0,   10,  212,  212,   14,  212,   16,
  212,  212,   23,  156,    0,  549,  127,  -52,    0,    0,
    0,  212,  212,  212,  212,  212,    0,    0,    0,   91,
  -17,  725,   24,   -3,  578, -205,  562,  725,   27,  212,
  606,  212,  669,  716,    0,    0,  725,    0,   19,    0,
   91,  127,    0,  212,  212,  -36,  -39,  -91,  -91,  -36,
  212,    0,  166,    0,  277,    0,  -21,   36,   40,    0,
    0,  725,   28,    0,  725,    0,    0,  156,    0,    0,
   84,  540,  -39,    0,   -9,  725,   -2,  -37, -174,    0,
  127,   48,    0,  346,    0, -167,    3,  212, -185,  127,
    0, -188,    6,   37,    0,    0,    0, -205,    0,    0,
    0,  127,  -42,   91,  212,    0,    0,    0,  -20,   54,
   26,    0,    0,  127,    0,
}

Definition at line 135 of file bc.c.

Referenced by yyparse().

short yyss[YYSTACKSIZE]
 

Definition at line 547 of file bc.c.

Referenced by yyparse().

short* yyssp
 

Definition at line 543 of file bc.c.

Referenced by yyparse().

short yytable[]
 

Definition at line 180 of file bc.c.

Referenced by yyparse().

YYSTYPE yyval
 

Definition at line 545 of file bc.c.

YYSTYPE yyvs[YYSTACKSIZE]
 

Definition at line 548 of file bc.c.

Referenced by yyparse().

YYSTYPE* yyvsp
 

Definition at line 544 of file bc.c.

Referenced by yyparse().


Generated on Fri Apr 14 22:59:22 2006 for minix by  doxygen 1.4.6