MISR Toolkit  1.5.1
Data Structures | Macros | Functions | Variables
parser.c File Reference
#include <stdlib.h>
#include "odldef.h"
#include "odlinter.h"

Go to the source code of this file.

Data Structures

union  YYSTYPE
 
struct  yytoktype
 

Macros

#define _OBJECT   257
 
#define _END_OBJECT   258
 
#define _GROUP   259
 
#define _END_GROUP   260
 
#define _END   261
 
#define _sequence_opening   262
 
#define _sequence_closing   263
 
#define _set_opening   264
 
#define _set_closing   265
 
#define _units_opening   266
 
#define _units_closing   267
 
#define _list_separator   268
 
#define _point_operator   269
 
#define _assignment_operator   270
 
#define _multiply_operator   271
 
#define _divide_operator   272
 
#define _exponentiate_operator   273
 
#define _range_operator   274
 
#define _date   275
 
#define _date_time   276
 
#define _date_timeV0   277
 
#define _integer   278
 
#define _name   279
 
#define _real   280
 
#define _symbol   281
 
#define _text_string   282
 
#define _time   283
 
#define yyclearin   yychar = -1
 
#define yyerrok   yyerrflag = 0
 
#define YYMAXDEPTH   150
 
#define YYERRCODE   256
 
#define YYNPROD   83
 
#define YYLAST   187
 
#define YYDEBUG   0 /* don't allow debugging */
 
#define YYERROR   goto yyerrlab
 
#define YYACCEPT   { free(yys); free(yyv); return(0); }
 
#define YYABORT   { free(yys); free(yyv); return(1); }
 
#define YYBACKUP(newtoken, newvalue)
 
#define YYRECOVERING()   (!!yyerrflag)
 
#define YYFLAG   (-1000)
 

Functions

int yyerror (char *error_msg)
 
int yyparse ()
 

Variables

int pds_watch_ends = TRUE
 
int yychar
 
int yyerrflag
 
YYSTYPE yylval
 
YYSTYPE yyval
 
int yyexca []
 
int yyact []
 
int yypact []
 
int yypgo []
 
int yyr1 []
 
int yyr2 []
 
int yychk []
 
int yydef []
 
int yydebug
 
static YYSTYPEyyv
 
static int * yys
 
static YYSTYPEyypv
 
static int * yyps
 
static int yystate
 
static int yytmp
 
int yynerrs
 

Macro Definition Documentation

◆ _assignment_operator

#define _assignment_operator   270

Definition at line 66 of file parser.c.

◆ _date

#define _date   275

Definition at line 71 of file parser.c.

◆ _date_time

#define _date_time   276

Definition at line 72 of file parser.c.

◆ _date_timeV0

#define _date_timeV0   277

Definition at line 73 of file parser.c.

◆ _divide_operator

#define _divide_operator   272

Definition at line 68 of file parser.c.

◆ _END

#define _END   261

Definition at line 57 of file parser.c.

◆ _END_GROUP

#define _END_GROUP   260

Definition at line 56 of file parser.c.

◆ _END_OBJECT

#define _END_OBJECT   258

Definition at line 54 of file parser.c.

◆ _exponentiate_operator

#define _exponentiate_operator   273

Definition at line 69 of file parser.c.

◆ _GROUP

#define _GROUP   259

Definition at line 55 of file parser.c.

◆ _integer

#define _integer   278

Definition at line 74 of file parser.c.

◆ _list_separator

#define _list_separator   268

Definition at line 64 of file parser.c.

◆ _multiply_operator

#define _multiply_operator   271

Definition at line 67 of file parser.c.

◆ _name

#define _name   279

Definition at line 75 of file parser.c.

◆ _OBJECT

#define _OBJECT   257

Definition at line 53 of file parser.c.

◆ _point_operator

#define _point_operator   269

Definition at line 65 of file parser.c.

◆ _range_operator

#define _range_operator   274

Definition at line 70 of file parser.c.

◆ _real

#define _real   280

Definition at line 76 of file parser.c.

◆ _sequence_closing

#define _sequence_closing   263

Definition at line 59 of file parser.c.

◆ _sequence_opening

#define _sequence_opening   262

Definition at line 58 of file parser.c.

◆ _set_closing

#define _set_closing   265

Definition at line 61 of file parser.c.

◆ _set_opening

#define _set_opening   264

Definition at line 60 of file parser.c.

◆ _symbol

#define _symbol   281

Definition at line 77 of file parser.c.

◆ _text_string

#define _text_string   282

Definition at line 78 of file parser.c.

◆ _time

#define _time   283

Definition at line 79 of file parser.c.

◆ _units_closing

#define _units_closing   267

Definition at line 63 of file parser.c.

◆ _units_opening

#define _units_opening   266

Definition at line 62 of file parser.c.

◆ YYABORT

#define YYABORT   { free(yys); free(yyv); return(1); }

Definition at line 358 of file parser.c.

◆ YYACCEPT

#define YYACCEPT   { free(yys); free(yyv); return(0); }

Definition at line 357 of file parser.c.

◆ YYBACKUP

#define YYBACKUP (   newtoken,
  newvalue 
)
Value:
{\
if ( yychar >= 0 || ( yyr2[ yytmp ] >> 1 ) != 1 )\
{\
yyerror( "syntax error - cannot backup" );\
goto yyerrlab;\
}\
yychar = newtoken;\
yystate = *yyps;\
yylval = newvalue;\
goto yynewstate;\
}
int yychar
Definition: parser.c:401
int yyr2[]
Definition: parser.c:181
static int * yyps
Definition: parser.c:393
static int yytmp
Definition: parser.c:396

Definition at line 359 of file parser.c.

◆ yyclearin

#define yyclearin   yychar = -1

Definition at line 80 of file parser.c.

◆ YYDEBUG

#define YYDEBUG   0 /* don't allow debugging */

Definition at line 222 of file parser.c.

◆ YYERRCODE

#define YYERRCODE   256

Definition at line 88 of file parser.c.

◆ yyerrok

#define yyerrok   yyerrflag = 0

Definition at line 81 of file parser.c.

◆ YYERROR

#define YYERROR   goto yyerrlab

Definition at line 356 of file parser.c.

◆ YYFLAG

#define YYFLAG   (-1000)

Definition at line 384 of file parser.c.

◆ YYLAST

#define YYLAST   187

Definition at line 127 of file parser.c.

◆ YYMAXDEPTH

#define YYMAXDEPTH   150

Definition at line 85 of file parser.c.

◆ YYNPROD

#define YYNPROD   83

Definition at line 126 of file parser.c.

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrflag)

Definition at line 371 of file parser.c.

Function Documentation

◆ yyerror()

int yyerror ( char *  error_msg)

Definition at line 97 of file parser.c.

◆ yyparse()

int yyparse ( )

Definition at line 408 of file parser.c.

Variable Documentation

◆ pds_watch_ends

int pds_watch_ends = TRUE

Definition at line 44 of file parser.c.

◆ yyact

int yyact[]
Initial value:
={
67, 87, 38, 37, 36, 35, 77, 73, 27, 67,
52, 63, 105, 34, 33, 97, 73, 31, 30, 54,
56, 57, 52, 58, 53, 59, 60, 55, 54, 56,
57, 52, 58, 53, 59, 60, 55, 61, 96, 51,
67, 29, 28, 98, 85, 72, 84, 77, 90, 64,
54, 56, 57, 52, 58, 53, 59, 60, 55, 54,
56, 57, 52, 58, 53, 59, 60, 55, 54, 56,
57, 52, 58, 53, 59, 60, 55, 7, 19, 20,
21, 22, 12, 111, 26, 94, 103, 89, 66, 83,
18, 49, 68, 74, 88, 82, 39, 99, 25, 80,
17, 101, 102, 3, 81, 110, 23, 80, 75, 50,
71, 24, 104, 93, 70, 69, 48, 47, 46, 45,
43, 40, 42, 41, 62, 44, 32, 15, 13, 11,
10, 9, 8, 6, 5, 4, 2, 100, 109, 95,
14, 16, 1, 0, 106, 65, 0, 0, 0, 0,
108, 40, 0, 76, 0, 44, 79, 0, 112, 78,
86, 0, 0, 0, 0, 0, 0, 91, 0, 92,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 107 }

Definition at line 128 of file parser.c.

◆ yychar

int yychar

Definition at line 401 of file parser.c.

◆ yychk

int yychk[]
Initial value:
={
-1000, -1, -8, -9, -10, -11, -12, 256, -13, -14,
-15, -16, 261, -17, -4, -18, -3, 279, 269, 257,
258, 259, 260, -9, -9, 270, 256, 279, 270, 270,
270, 270, -19, 256, 270, 279, 279, 279, 279, -20,
-22, -23, -24, -25, -2, -26, -27, -28, -29, -38,
-39, 264, 278, 280, 275, 283, 276, 277, 279, 281,
282, 262, -21, 274, 265, -40, -22, 256, -2, -30,
-32, -37, 266, 263, -40, -41, -38, 262, -20, -2,
268, 265, 256, -31, -33, 266, -31, 279, 263, 256,
263, -38, -22, -34, -35, -5, 279, 256, 267, 267,
-7, 271, 272, 256, -36, 273, -33, -35, -33, -6,
278, 256, -33 }

Definition at line 192 of file parser.c.

◆ yydebug

int yydebug

Definition at line 379 of file parser.c.

◆ yydef

int yydef[]
Initial value:
={
0, -2, -2, 2, 4, 5, 6, 0, 8, 9,
10, 11, 12, 13, 14, 19, 20, 0, 0, 15,
17, 21, 23, 3, 7, -2, 28, 0, 0, 0,
0, 0, 0, 27, 29, 16, 18, 22, 24, 26,
31, 32, 33, 34, 35, 36, 37, 38, 39, 68,
69, 0, 40, 42, 59, 60, 61, 63, 65, 66,
67, 0, 0, 0, 79, 0, 73, 75, 35, 44,
44, 62, 0, 70, 0, 0, 77, 0, 30, 82,
0, 80, 81, 41, 45, 0, 43, 0, 71, 72,
76, 78, 74, 0, 47, 49, 51, 0, 64, 46,
0, 53, 54, 0, 0, 56, 52, 48, 55, 50,
57, 0, 58 }

Definition at line 206 of file parser.c.

◆ yyerrflag

int yyerrflag

Definition at line 400 of file parser.c.

◆ yyexca

int yyexca[]
Initial value:
={
-1, 1,
0, -1,
-2, 0,
-1, 2,
0, 1,
-2, 0,
-1, 25,
262, 25,
264, 25,
275, 25,
276, 25,
277, 25,
278, 25,
279, 25,
280, 25,
281, 25,
282, 25,
283, 25,
-2, 0,
}

Definition at line 105 of file parser.c.

◆ yylval

YYSTYPE yylval

Definition at line 87 of file parser.c.

◆ yynerrs

int yynerrs

Definition at line 398 of file parser.c.

◆ yypact

int yypact[]
Initial value:
={
-179, -1000, -179, -1000, -1000, -1000, -1000, -179, -1000, -1000,
-1000, -1000, -1000, -1000, -1000, -1000, -1000, -172, -271, -228,
-229, -252, -253, -1000, -1000, -242, -1000, -257, -274, -275,
-276, -277, -225, -1000, -1000, -1000, -1000, -1000, -1000, -1000,
-1000, -1000, -1000, -1000, -263, -1000, -1000, -1000, -1000, -1000,
-1000, -216, -1000, -1000, -1000, -1000, -1000, -221, -1000, -1000,
-1000, -256, -225, -268, -1000, -161, -1000, -1000, -1000, -222,
-222, -1000, -278, -1000, -169, -215, -1000, -247, -1000, -1000,
-207, -1000, -1000, -1000, -1000, -241, -1000, -224, -1000, -1000,
-1000, -1000, -1000, -170, -1000, -261, -1000, -222, -1000, -1000,
-241, -1000, -1000, -222, -173, -1000, -1000, -1000, -1000, -1000,
-1000, -222, -1000 }

Definition at line 149 of file parser.c.

◆ yypgo

int yypgo[]
Initial value:
={
0, 142, 92, 141, 140, 139, 138, 137, 136, 103,
135, 134, 133, 132, 131, 130, 129, 128, 127, 126,
96, 124, 88, 123, 122, 120, 119, 118, 117, 116,
115, 89, 114, 46, 113, 85, 112, 110, 91, 109,
93, 108 }

Definition at line 163 of file parser.c.

◆ yyps

int* yyps
static

Definition at line 393 of file parser.c.

◆ yypv

YYSTYPE* yypv
static

Definition at line 392 of file parser.c.

◆ yyr1

int yyr1[]
Initial value:
={
0, 1, 8, 8, 9, 9, 9, 9, 10, 10,
11, 11, 12, 13, 13, 17, 17, 4, 4, 14,
14, 18, 18, 3, 3, 19, 15, 15, 15, 21,
16, 20, 20, 20, 20, 22, 22, 22, 22, 22,
30, 2, 32, 26, 31, 31, 33, 34, 34, 35,
35, 5, 5, 7, 7, 7, 36, 6, 6, 27,
27, 27, 27, 37, 37, 28, 28, 29, 23, 23,
38, 38, 38, 40, 40, 40, 39, 41, 41, 24,
24, 24, 25 }

Definition at line 170 of file parser.c.

◆ yyr2

int yyr2[]
Initial value:
={
0, 3, 2, 4, 2, 2, 2, 4, 2, 2,
2, 2, 3, 2, 2, 3, 7, 3, 7, 2,
2, 3, 7, 3, 7, 1, 8, 7, 5, 1,
10, 3, 3, 3, 3, 2, 2, 2, 2, 2,
1, 6, 1, 6, 0, 2, 6, 2, 7, 3,
7, 2, 5, 3, 3, 5, 2, 2, 5, 3,
3, 3, 5, 0, 6, 3, 3, 3, 2, 2,
5, 7, 7, 2, 6, 3, 6, 2, 4, 4,
6, 7, 7 }

Definition at line 181 of file parser.c.

◆ yys

int* yys
static

Definition at line 390 of file parser.c.

◆ yystate

int yystate
static

Definition at line 395 of file parser.c.

◆ yytmp

int yytmp
static

Definition at line 396 of file parser.c.

◆ yyv

YYSTYPE* yyv
static

Definition at line 389 of file parser.c.

◆ yyval

YYSTYPE yyval

Definition at line 87 of file parser.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53