langparser.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "strings.h"
#include "lang.h"
#include "langinternal.h"
#include "langparser.h"

Include dependency graph for langparser.c:

Go to the source code of this file.

Defines

#define EQtoken   400
#define NEtoken   401
#define GTtoken   402
#define LTtoken   403
#define GEtoken   404
#define LEtoken   405
#define nottoken   406
#define andandtoken   407
#define orortoken   408
#define beginswithtoken   409
#define endswithtoken   410
#define containstoken   411
#define bitandtoken   412
#define bitortoken   413
#define looptoken   500
#define filelooptoken   501
#define intoken   502
#define breaktoken   503
#define returntoken   504
#define iftoken   505
#define thentoken   506
#define elsetoken   507
#define bundletoken   508
#define localtoken   509
#define ontoken   510
#define whiletoken   511
#define casetoken   512
#define kerneltoken   513
#define fortoken   514
#define totoken   515
#define downtotoken   516
#define continuetoken   517
#define withtoken   518
#define trytoken   519
#define globaltoken   520
#define errortoken   292
#define eoltoken   293
#define constanttoken   294
#define identifiertoken   295
#define othertoken   296
#define assigntoken   297
#define addtoken   298
#define subtracttoken   299
#define multiplytoken   300
#define dividetoken   301
#define modtoken   302
#define plusplustoken   303
#define minusminustoken   304
#define unaryminus   305
#define YYSTYPE   int
#define YYERRCODE   256
#define yytrace(s)
#define YYNPROD   131
#define YYLAST   1078
#define YYMAXDEPTH   200
#define YYREDMAX   1000
#define PCYYFLAG   -1000
#define WAS0ERR   0
#define WAS1ERR   1
#define WAS2ERR   2
#define WAS3ERR   3
#define yyclearin   pcyytoken = -1
#define yyerrok   pcyyerrfl = 0

Functions

static int yylex (void)
static void yyerror (char *s)
int yyparse (void)

Variables

YYSTYPE yylval
YYSTYPE yyval
FILE * yytfilep
char * yytfilen
int yytflag = 0
int svdprd [2]
char svdnams [2][2]
const int yyexca []
const int yyact []
const int yypact []
const int yypgo []
const int yyr1 []
const int yyr2 []
const int yychk []
const int yydef []
const int * yyxi
YYSTYPE yyv [YYMAXDEPTH]
int pcyyerrct = 0
int pcyyerrfl = 0
int redseq [YYREDMAX]
int redcnt = 0
int pcyytoken = -1


Define Documentation

#define addtoken   298
 

Definition at line 143 of file langparser.c.

#define andandtoken   407
 

Definition at line 109 of file langparser.c.

#define assigntoken   297
 

Definition at line 142 of file langparser.c.

#define beginswithtoken   409
 

Definition at line 111 of file langparser.c.

#define bitandtoken   412
 

Definition at line 114 of file langparser.c.

#define bitortoken   413
 

Definition at line 115 of file langparser.c.

#define breaktoken   503
 

Definition at line 119 of file langparser.c.

#define bundletoken   508
 

Definition at line 124 of file langparser.c.

#define casetoken   512
 

Definition at line 128 of file langparser.c.

#define constanttoken   294
 

Definition at line 139 of file langparser.c.

#define containstoken   411
 

Definition at line 113 of file langparser.c.

#define continuetoken   517
 

Definition at line 133 of file langparser.c.

#define dividetoken   301
 

Definition at line 146 of file langparser.c.

#define downtotoken   516
 

Definition at line 132 of file langparser.c.

#define elsetoken   507
 

Definition at line 123 of file langparser.c.

#define endswithtoken   410
 

Definition at line 112 of file langparser.c.

#define eoltoken   293
 

Definition at line 138 of file langparser.c.

#define EQtoken   400
 

Definition at line 102 of file langparser.c.

#define errortoken   292
 

Definition at line 137 of file langparser.c.

#define filelooptoken   501
 

Definition at line 117 of file langparser.c.

#define fortoken   514
 

Definition at line 130 of file langparser.c.

#define GEtoken   404
 

Definition at line 106 of file langparser.c.

#define globaltoken   520
 

Definition at line 136 of file langparser.c.

#define GTtoken   402
 

Definition at line 104 of file langparser.c.

#define identifiertoken   295
 

Definition at line 140 of file langparser.c.

#define iftoken   505
 

Definition at line 121 of file langparser.c.

#define intoken   502
 

Definition at line 118 of file langparser.c.

#define kerneltoken   513
 

Definition at line 129 of file langparser.c.

#define LEtoken   405
 

Definition at line 107 of file langparser.c.

#define localtoken   509
 

Definition at line 125 of file langparser.c.

#define looptoken   500
 

Definition at line 116 of file langparser.c.

#define LTtoken   403
 

Definition at line 105 of file langparser.c.

#define minusminustoken   304
 

Definition at line 149 of file langparser.c.

#define modtoken   302
 

Definition at line 147 of file langparser.c.

#define multiplytoken   300
 

Definition at line 145 of file langparser.c.

#define NEtoken   401
 

Definition at line 103 of file langparser.c.

#define nottoken   406
 

Definition at line 108 of file langparser.c.

#define ontoken   510
 

Definition at line 126 of file langparser.c.

#define orortoken   408
 

Definition at line 110 of file langparser.c.

#define othertoken   296
 

Definition at line 141 of file langparser.c.

#define PCYYFLAG   -1000
 

Definition at line 535 of file langparser.c.

Referenced by yyparse().

#define plusplustoken   303
 

Definition at line 148 of file langparser.c.

#define returntoken   504
 

Definition at line 120 of file langparser.c.

#define subtracttoken   299
 

Definition at line 144 of file langparser.c.

#define thentoken   506
 

Definition at line 122 of file langparser.c.

#define totoken   515
 

Definition at line 131 of file langparser.c.

#define trytoken   519
 

Definition at line 135 of file langparser.c.

#define unaryminus   305
 

Definition at line 150 of file langparser.c.

#define WAS0ERR   0
 

Definition at line 536 of file langparser.c.

#define WAS1ERR   1
 

Definition at line 537 of file langparser.c.

#define WAS2ERR   2
 

Definition at line 538 of file langparser.c.

#define WAS3ERR   3
 

Definition at line 539 of file langparser.c.

#define whiletoken   511
 

Definition at line 127 of file langparser.c.

#define withtoken   518
 

Definition at line 134 of file langparser.c.

#define yyclearin   pcyytoken = -1
 

Definition at line 540 of file langparser.c.

#define YYERRCODE   256
 

Definition at line 155 of file langparser.c.

#define yyerrok   pcyyerrfl = 0
 

Definition at line 541 of file langparser.c.

#define YYLAST   1078
 

Definition at line 221 of file langparser.c.

Referenced by yyparse().

#define YYMAXDEPTH   200
 

Definition at line 530 of file langparser.c.

Referenced by yyparse().

#define YYNPROD   131
 

Definition at line 220 of file langparser.c.

#define YYREDMAX   1000
 

Definition at line 533 of file langparser.c.

#define YYSTYPE   int
 

Definition at line 152 of file langparser.c.

#define yytrace  ) 
 

Definition at line 173 of file langparser.c.


Function Documentation

static void yyerror char *  s  )  [static]
 

Definition at line 189 of file langparser.c.

References parseerror().

Referenced by yyparse().

Here is the call graph for this function:

static int yylex void   )  [static]
 

Definition at line 178 of file langparser.c.

References parsegettoken(), and yylval.

Referenced by yyparse().

Here is the call graph for this function:

int yyparse void   ) 
 

Definition at line 550 of file langparser.c.

References NULL, pcyyerrct, pcyyerrfl, PCYYFLAG, pcyytoken, redcnt, redseq, svdnams, svdprd, yyact, yychk, yydef, yyerror(), yyexca, YYLAST, yylex(), yylval, YYMAXDEPTH, yypact, YYSTYPE, yytfilen, yytfilep, yytflag, yyv, yyval, and yyxi.

Referenced by langcompiletext().

Here is the call graph for this function:


Variable Documentation

int pcyyerrct = 0
 

Definition at line 543 of file langparser.c.

Referenced by yyparse().

int pcyyerrfl = 0
 

Definition at line 544 of file langparser.c.

Referenced by yyparse().

int pcyytoken = -1
 

Definition at line 547 of file langparser.c.

Referenced by yyparse().

int redcnt = 0
 

Definition at line 546 of file langparser.c.

Referenced by yyparse().

int redseq[YYREDMAX]
 

Definition at line 545 of file langparser.c.

Referenced by yyparse().

char svdnams[2][2]
 

Definition at line 211 of file langparser.c.

Referenced by yyparse().

int svdprd[2]
 

Definition at line 210 of file langparser.c.

Referenced by yyparse().

const int yyact[]
 

Definition at line 223 of file langparser.c.

Referenced by yyparse().

const int yychk[]
 

Definition at line 445 of file langparser.c.

Referenced by yyparse().

const int yydef[]
 

Definition at line 481 of file langparser.c.

Referenced by yyparse().

const int yyexca[]
 

Initial value:

 {
  -1, 1,
  0, -1,
  -2, 0,
  0,
}

Definition at line 213 of file langparser.c.

Referenced by yyparse().

YYSTYPE yylval
 

Definition at line 154 of file langparser.c.

Referenced by langcompiletext(), yylex(), and yyparse().

const int yypact[]
 

Definition at line 361 of file langparser.c.

Referenced by yyparse().

const int yypgo[]
 

Initial value:

 {
       0,     273,     208,     849,     727,     272,      61,     265,
      46,      62,     842,     262,     799,     571,      38,     261,
     260,      67,     258,     253,     252,     251,     249,     248,
     247,     246,     218,     215,     213,     212,      32,     202,
     167,     146,     192,      49,      43,     190,
}

Definition at line 397 of file langparser.c.

const int yyr1[]
 

Initial value:

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

Definition at line 405 of file langparser.c.

const int yyr2[]
 

Initial value:

 {
       0,       2,       1,       1,       3,       5,       4,       0,
       2,       1,       2,       1,       1,       3,       3,       1,
       3,       3,       1,       2,       2,       4,       3,       3,
       3,       4,       4,       4,       1,       1,       1,       1,
       0,       1,       3,       2,       4,       4,       4,       4,
       4,       2,       2,       2,       2,       2,       4,       2,
       3,       1,       1,       2,       4,       6,       2,       2,
       4,       2,       4,       6,       8,       4,       8,       1,
       4,       2,       6,       6,       8,       6,       8,       5,
       3,       4,       6,       2,       1,       1,       2,       0,
       1,       2,       4,       2,       1,       3,       1,       3,
       0,       1,       0,       1,       3,       1,       3,       3,
       1,       3,       1,       1,       3,       4,       1,       1,
       2,       1,       2,       2,       2,       2,       3,       3,
       3,       3,       3,       3,       3,       3,       3,       3,
       3,       3,       3,       3,       3,       3,       3,       2,
       2,       3,       3,
}

Definition at line 425 of file langparser.c.

char* yytfilen
 

Definition at line 208 of file langparser.c.

Referenced by yyparse().

FILE* yytfilep
 

Definition at line 207 of file langparser.c.

Referenced by yyparse().

int yytflag = 0
 

Definition at line 209 of file langparser.c.

Referenced by yyparse().

YYSTYPE yyv[YYMAXDEPTH]
 

Definition at line 542 of file langparser.c.

Referenced by yyparse().

YYSTYPE yyval
 

Definition at line 154 of file langparser.c.

Referenced by langcompiletext(), and yyparse().

const int* yyxi
 

Definition at line 517 of file langparser.c.

Referenced by yyparse().


Generated on Sun Jun 4 15:34:36 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6