Code_Saturne
CFD tool
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
mei_parser.c File Reference
#include <string.h>
#include "mei_node.h"
#include "mei_parser_glob.h"
#include <bft_mem.h>
#include <bft_printf.h>

Data Structures

union  YYSTYPE
 
union  yyalloc
 

Macros

#define YYBISON   1
 
#define YYBISON_VERSION   "2.4.1"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define YYLSP_NEEDED   0
 
#define YYDEBUG   0
 
#define YYERROR_VERBOSE   0
 
#define YYTOKEN_TABLE   0
 
#define YYTOKENTYPE
 
#define NUMBER   258
 
#define VAR   259
 
#define FUN1   260
 
#define FUN2   261
 
#define FUN3   262
 
#define FUN4   263
 
#define IN1D   264
 
#define WHILE   265
 
#define IF   266
 
#define PRINT   267
 
#define IFX   268
 
#define ELSE   269
 
#define OR   270
 
#define AND   271
 
#define NE   272
 
#define EQ   273
 
#define LE   274
 
#define GE   275
 
#define UMINUS   276
 
#define UPLUS   277
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define yystype   YYSTYPE /* obsolescent; will be withdrawn */
 
#define YYSTYPE_IS_DECLARED   1
 
#define YYSIZE_T   unsigned int
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YY_(msgid)   msgid
 
#define YYUSE(e)   ((void) (e))
 
#define YYID(n)   (n)
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYMALLOC   malloc
 
#define YYFREE   free
 
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
 
#define YYSTACK_BYTES(N)
 
#define YYCOPY(To, From, Count)
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYFINAL   36
 
#define YYLAST   1267
 
#define YYNTOKENS   38
 
#define YYNNTS   5
 
#define YYNRULES   39
 
#define YYNSTATES   108
 
#define YYUNDEFTOK   2
 
#define YYMAXUTOK   277
 
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYPACT_NINF   -28
 
#define YYTABLE_NINF   -38
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYEMPTY   (-2)
 
#define YYEOF   0
 
#define YYACCEPT   goto yyacceptlab
 
#define YYABORT   goto yyabortlab
 
#define YYERROR   goto yyerrorlab
 
#define YYFAIL   goto yyerrlab
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#define YYRHSLOC(Rhs, K)   ((Rhs)[K])
 
#define YYLLOC_DEFAULT(Current, Rhs, N)
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#define YYLEX   yylex ()
 
#define YYDPRINTF(Args)
 
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_REDUCE_PRINT(Rule)
 
#define YYINITDEPTH   200
 
#define YYMAXDEPTH   10000
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 

Typedefs

typedef union YYSTYPE YYSTYPE
 
typedef unsigned char yytype_uint8
 
typedef short int yytype_int8
 
typedef unsigned short int yytype_uint16
 
typedef short int yytype_int16
 

Enumerations

enum  yytokentype {
  NUMBER = 258, VAR = 259, FUN1 = 260, FUN2 = 261,
  FUN3 = 262, FUN4 = 263, IN1D = 264, WHILE = 265,
  IF = 266, PRINT = 267, IFX = 268, ELSE = 269,
  OR = 270, AND = 271, NE = 272, EQ = 273,
  LE = 274, GE = 275, UMINUS = 276, UPLUS = 277,
  NUMBER = 258, VAR = 259, FUN1 = 260, FUN2 = 261,
  FUN3 = 262, FUN4 = 263, IN1D = 264, WHILE = 265,
  IF = 266, PRINT = 267, IFX = 268, ELSE = 269,
  OR = 270, AND = 271, NE = 272, EQ = 273,
  LE = 274, GE = 275, UMINUS = 276, UPLUS = 277
}
 

Functions

int yyparse ()
 
void yyerror (const char *s)
 

Variables

int yychar
 
YYSTYPE yylval
 
int yynerrs
 

Macro Definition Documentation

◆ AND

#define AND   271

◆ ELSE

#define ELSE   269

◆ EQ

#define EQ   273

◆ FUN1

#define FUN1   260

◆ FUN2

#define FUN2   261

◆ FUN3

#define FUN3   262

◆ FUN4

#define FUN4   263

◆ GE

#define GE   275

◆ IF

#define IF   266

◆ IFX

#define IFX   268

◆ IN1D

#define IN1D   264

◆ LE

#define LE   274

◆ NE

#define NE   272

◆ NUMBER

#define NUMBER   258

◆ OR

#define OR   270

◆ PRINT

#define PRINT   267

◆ UMINUS

#define UMINUS   276

◆ UPLUS

#define UPLUS   277

◆ VAR

#define VAR   259

◆ WHILE

#define WHILE   265

◆ YY_

#define YY_ (   msgid)    msgid

◆ YY_LOCATION_PRINT

#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

◆ YY_STACK_PRINT

#define YY_STACK_PRINT (   Bottom,
  Top 
)

◆ YY_SYMBOL_PRINT

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)

◆ YYABORT

#define YYABORT   goto yyabortlab

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

◆ YYBACKUP

#define YYBACKUP (   Token,
  Value 
)
Value:
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (YYID (0))
if(!(yy_init))
Definition: mei_scanner.c:832
int yychar
Definition: mei_parser.c:1435
#define YYTRANSLATE(YYX)
Definition: mei_parser.c:450
#define YYID(n)
Definition: mei_parser.c:290
#define YY_(msgid)
Definition: mei_parser.c:277
#define YYEMPTY
Definition: mei_parser.c:906

◆ YYBISON

#define YYBISON   1

◆ YYBISON_VERSION

#define YYBISON_VERSION   "2.4.1"

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

◆ YYCOPY

#define YYCOPY (   To,
  From,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (0))
#define YYID(n)
Definition: mei_parser.c:290

◆ YYDEBUG

#define YYDEBUG   0

◆ YYDPRINTF

#define YYDPRINTF (   Args)

◆ YYEMPTY

#define YYEMPTY   (-2)

◆ YYEOF

#define YYEOF   0

◆ YYERRCODE

#define YYERRCODE   256

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

◆ YYERROR

#define YYERROR   goto yyerrorlab

◆ YYERROR_VERBOSE

#define YYERROR_VERBOSE   0

◆ YYFAIL

#define YYFAIL   goto yyerrlab

◆ YYFINAL

#define YYFINAL   36

◆ YYFREE

#define YYFREE   free

◆ YYID

#define YYID (   n)    (n)

◆ YYINITDEPTH

#define YYINITDEPTH   200

◆ YYLAST

#define YYLAST   1267

◆ YYLEX

#define YYLEX   yylex ()

◆ YYLLOC_DEFAULT

#define YYLLOC_DEFAULT (   Current,
  Rhs,
 
)
Value:
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (YYID (0))
if(!(yy_init))
Definition: mei_scanner.c:832
#define YYRHSLOC(Rhs, K)
Definition: mei_parser.c:948
#define YYID(n)
Definition: mei_parser.c:290

◆ YYLSP_NEEDED

#define YYLSP_NEEDED   0

◆ YYMALLOC

#define YYMALLOC   malloc

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

◆ YYMAXUTOK

#define YYMAXUTOK   277

◆ YYNNTS

#define YYNNTS   5

◆ YYNRULES

#define YYNRULES   39

◆ YYNSTATES

#define YYNSTATES   108

◆ YYNTOKENS

#define YYNTOKENS   38

◆ YYPACT_NINF

#define YYPACT_NINF   -28

◆ YYPOPSTACK

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))

◆ YYPULL

#define YYPULL   1

◆ YYPURE

#define YYPURE   0

◆ YYPUSH

#define YYPUSH   0

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

◆ YYRHSLOC

#define YYRHSLOC (   Rhs,
 
)    ((Rhs)[K])

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

◆ YYSIZE_T

#define YYSIZE_T   unsigned int

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   YYMALLOC

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

◆ YYSTACK_BYTES

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
short int yytype_int16
Definition: mei_parser.c:250
union YYSTYPE YYSTYPE
#define YYSTACK_GAP_MAXIMUM
Definition: mei_parser.c:388

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

◆ YYSTACK_GAP_MAXIMUM

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

◆ YYSTACK_RELOCATE

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
#define YYID(n)
Definition: mei_parser.c:290
#define YYSTACK_GAP_MAXIMUM
Definition: mei_parser.c:388

◆ yystype

#define yystype   YYSTYPE /* obsolescent; will be withdrawn */

◆ YYSTYPE_IS_DECLARED

#define YYSTYPE_IS_DECLARED   1

◆ YYSTYPE_IS_TRIVIAL

#define YYSTYPE_IS_TRIVIAL   1

◆ YYTABLE_NINF

#define YYTABLE_NINF   -38

◆ YYTERROR

#define YYTERROR   1

◆ YYTOKEN_TABLE

#define YYTOKEN_TABLE   0

◆ YYTOKENTYPE

#define YYTOKENTYPE

◆ YYTRANSLATE

#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

◆ YYUNDEFTOK

#define YYUNDEFTOK   2

◆ YYUSE

#define YYUSE (   e)    ((void) (e))

Typedef Documentation

◆ YYSTYPE

typedef union YYSTYPE YYSTYPE

◆ yytype_int16

typedef short int yytype_int16

◆ yytype_int8

typedef short int yytype_int8

◆ yytype_uint16

typedef unsigned short int yytype_uint16

◆ yytype_uint8

typedef unsigned char yytype_uint8

Enumeration Type Documentation

◆ yytokentype

Enumerator
NUMBER 
VAR 
FUN1 
FUN2 
FUN3 
FUN4 
IN1D 
WHILE 
IF 
PRINT 
IFX 
ELSE 
OR 
AND 
NE 
EQ 
LE 
GE 
UMINUS 
UPLUS 
NUMBER 
VAR 
FUN1 
FUN2 
FUN3 
FUN4 
IN1D 
WHILE 
IF 
PRINT 
IFX 
ELSE 
OR 
AND 
NE 
EQ 
LE 
GE 
UMINUS 
UPLUS 

Function Documentation

◆ yyerror()

void yyerror ( const char *  s)
Here is the call graph for this function:

◆ yyparse()

int yyparse ( void  )
Here is the call graph for this function:

Variable Documentation

◆ yychar

int yychar

◆ yylval

YYSTYPE yylval

◆ yynerrs

int yynerrs