LMMS
Loading...
Searching...
No Matches
y.tab.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "y.tab.h"
#include "ns-eel-int.h"

Go to the source code of this file.

Classes

union  yyalloc

Macros

#define YYBISON   1
#define YYBISON_VERSION   "2.3"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   1
#define YYLSP_NEEDED   1
#define yyparse   nseelparse
#define yylex   nseellex
#define yyerror   nseelerror
#define yylval   nseellval
#define yychar   nseelchar
#define yydebug   nseeldebug
#define yynerrs   nseelnerrs
#define yylloc   nseellloc
#define YYTOKENTYPE
#define VALUE   258
#define IDENTIFIER   259
#define TOKEN_SHL   260
#define TOKEN_SHR   261
#define TOKEN_LTE   262
#define TOKEN_GTE   263
#define TOKEN_EQ   264
#define TOKEN_EQ_EXACT   265
#define TOKEN_NE   266
#define TOKEN_NE_EXACT   267
#define TOKEN_LOGICAL_AND   268
#define TOKEN_LOGICAL_OR   269
#define TOKEN_ADD_OP   270
#define TOKEN_SUB_OP   271
#define TOKEN_MOD_OP   272
#define TOKEN_OR_OP   273
#define TOKEN_AND_OP   274
#define TOKEN_XOR_OP   275
#define TOKEN_DIV_OP   276
#define TOKEN_MUL_OP   277
#define TOKEN_POW_OP   278
#define STRING_LITERAL   279
#define STRING_IDENTIFIER   280
#define scanner   context->scanner
#define YY_(x)
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#define YYTOKEN_TABLE   0
#define YYSIZE_T   unsigned int
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YYUSE(e)
#define YYID(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)
#define YYFINAL   68
#define YYLAST   141
#define YYNTOKENS   47
#define YYNNTS   19
#define YYNRULES   73
#define YYNSTATES   127
#define YYUNDEFTOK   2
#define YYMAXUTOK   280
#define YYTRANSLATE(YYX)
#define YYPACT_NINF   -38
#define YYTABLE_NINF   -1
#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()
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYRHSLOC(Rhs, K)
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YY_LOCATION_PRINT(File, Loc)
#define YYLEX   yylex (&yylval, &yylloc, scanner)
#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 yydestruct(a, b, c, d, e)
#define YYPOPSTACK(N)

Typedefs

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

Enumerations

enum  yytokentype {
  VALUE = 258 , IDENTIFIER = 259 , TOKEN_SHL = 260 , TOKEN_SHR = 261 ,
  TOKEN_LTE = 262 , TOKEN_GTE = 263 , TOKEN_EQ = 264 , TOKEN_EQ_EXACT = 265 ,
  TOKEN_NE = 266 , TOKEN_NE_EXACT = 267 , TOKEN_LOGICAL_AND = 268 , TOKEN_LOGICAL_OR = 269 ,
  TOKEN_ADD_OP = 270 , TOKEN_SUB_OP = 271 , TOKEN_MOD_OP = 272 , TOKEN_OR_OP = 273 ,
  TOKEN_AND_OP = 274 , TOKEN_XOR_OP = 275 , TOKEN_DIV_OP = 276 , TOKEN_MUL_OP = 277 ,
  TOKEN_POW_OP = 278 , STRING_LITERAL = 279 , STRING_IDENTIFIER = 280
}

Functions

static void yydestruct (char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, compileContext *context) const
int yyparse (compileContext *context)

Variables

static const yytype_uint8 yytranslate []
static const yytype_uint8 yyr1 []
static const yytype_uint8 yyr2 []
static const yytype_uint8 yydefact []
static const yytype_int8 yydefgoto []
static const yytype_int8 yypact []
static const yytype_int8 yypgoto []
static const yytype_uint8 yytable []
static const yytype_int8 yycheck []
static const yytype_uint8 yystos []

Macro Definition Documentation

◆ IDENTIFIER

#define IDENTIFIER   259

◆ scanner

#define scanner   context->scanner

◆ STRING_IDENTIFIER

#define STRING_IDENTIFIER   280

◆ STRING_LITERAL

#define STRING_LITERAL   279

◆ TOKEN_ADD_OP

#define TOKEN_ADD_OP   270

◆ TOKEN_AND_OP

#define TOKEN_AND_OP   274

◆ TOKEN_DIV_OP

#define TOKEN_DIV_OP   276

◆ TOKEN_EQ

#define TOKEN_EQ   264

◆ TOKEN_EQ_EXACT

#define TOKEN_EQ_EXACT   265

◆ TOKEN_GTE

#define TOKEN_GTE   263

◆ TOKEN_LOGICAL_AND

#define TOKEN_LOGICAL_AND   268

◆ TOKEN_LOGICAL_OR

#define TOKEN_LOGICAL_OR   269

◆ TOKEN_LTE

#define TOKEN_LTE   262

◆ TOKEN_MOD_OP

#define TOKEN_MOD_OP   272

◆ TOKEN_MUL_OP

#define TOKEN_MUL_OP   277

◆ TOKEN_NE

#define TOKEN_NE   266

◆ TOKEN_NE_EXACT

#define TOKEN_NE_EXACT   267

◆ TOKEN_OR_OP

#define TOKEN_OR_OP   273

◆ TOKEN_POW_OP

#define TOKEN_POW_OP   278

◆ TOKEN_SHL

#define TOKEN_SHL   260

◆ TOKEN_SHR

#define TOKEN_SHR   261

◆ TOKEN_SUB_OP

#define TOKEN_SUB_OP   271

◆ TOKEN_XOR_OP

#define TOKEN_XOR_OP   275

◆ VALUE

#define VALUE   258

◆ YY_

#define YY_ ( x)
Value:
("")

◆ YY_LOCATION_PRINT

#define YY_LOCATION_PRINT ( File,
Loc )
Value:
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
(Loc).last_line, (Loc).last_column)
Definition File.h:50

◆ 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:
do \
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
yyerror (&yylloc, context, YY_("syntax error: cannot back up")); \
} \
while (YYID (0))
#define YYID(n)
Definition y.tab.c:262
#define yylloc
Definition y.tab.c:69
#define yychar
Definition y.tab.c:66
#define yylval
Definition y.tab.c:65
#define YYTRANSLATE(YYX)
Definition y.tab.c:424
#define YYEMPTY
Definition y.tab.c:699
#define YYERROR
Definition y.tab.c:704
#define YY_(x)
Definition y.tab.c:145

◆ YYBISON

#define YYBISON   1

◆ YYBISON_VERSION

#define YYBISON_VERSION   "2.3"

◆ yychar

#define yychar   nseelchar

◆ 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 YYSIZE_T
Definition y.tab.c:235

◆ YYDEBUG

#define YYDEBUG   0

◆ yydebug

#define yydebug   nseeldebug

◆ yydestruct

#define yydestruct ( a,
b,
c,
d,
e )

◆ 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

#define yyerror   nseelerror

◆ YYERROR_VERBOSE

#define YYERROR_VERBOSE   0

◆ YYFAIL

#define YYFAIL   goto yyerrlab

◆ YYFINAL

#define YYFINAL   68

◆ YYFREE

#define YYFREE   free

◆ YYID

#define YYID ( n)
Value:
(n)
int n
Definition crypt.c:458

◆ YYINITDEPTH

#define YYINITDEPTH   200

◆ YYLAST

#define YYLAST   141

◆ YYLEX

#define YYLEX   yylex (&yylval, &yylloc, scanner)

◆ yylex

#define yylex   nseellex

◆ yylloc

#define yylloc   nseellloc

◆ YYLLOC_DEFAULT

#define YYLLOC_DEFAULT ( Current,
Rhs,
N )
Value:
do \
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))
#define N
Definition nseel-cfunc.c:36
#define YYRHSLOC(Rhs, K)
Definition y.tab.c:741

◆ YYLSP_NEEDED

#define YYLSP_NEEDED   1

◆ yylval

#define yylval   nseellval

◆ YYMALLOC

#define YYMALLOC   malloc

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

◆ YYMAXUTOK

#define YYMAXUTOK   280

◆ yynerrs

#define yynerrs   nseelnerrs

◆ YYNNTS

#define YYNNTS   19

◆ YYNRULES

#define YYNRULES   73

◆ YYNSTATES

#define YYNSTATES   127

◆ YYNTOKENS

#define YYNTOKENS   47

◆ YYPACT_NINF

#define YYPACT_NINF   -38

◆ yyparse

int yyparse   nseelparse

◆ YYPOPSTACK

#define YYPOPSTACK ( N)
Value:
(yyvsp -= (N), yyssp -= (N), yylsp -= (N))

◆ YYPURE

#define YYPURE   1

◆ YYRECOVERING

#define YYRECOVERING ( )
Value:
(!!yyerrstatus)

◆ YYRHSLOC

#define YYRHSLOC ( Rhs,
K )
Value:
((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) + sizeof (YYLTYPE)) \
#define YYSTYPE
Definition ns-eel-int.h:99
Definition y.tab.h:106
short int yytype_int16
Definition y.tab.c:222
#define YYSTACK_GAP_MAXIMUM
Definition y.tab.c:362

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

◆ YYSTACK_GAP_MAXIMUM

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

◆ YYSTACK_RELOCATE

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

◆ YYTABLE_NINF

#define YYTABLE_NINF   -1

◆ YYTERROR

#define YYTERROR   1

◆ YYTOKEN_TABLE

#define YYTOKEN_TABLE   0

◆ YYTOKENTYPE

#define YYTOKENTYPE

◆ YYTRANSLATE

#define YYTRANSLATE ( YYX)
Value:
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
typedef int(UZ_EXP MsgFn)()
static const yytype_uint8 yytranslate[]
Definition y.tab.c:428
#define YYUNDEFTOK
Definition y.tab.c:421
#define YYMAXUTOK
Definition y.tab.c:422

◆ YYUNDEFTOK

#define YYUNDEFTOK   2

◆ YYUSE

#define YYUSE ( e)
Value:
((void) (e))
* e
Definition inflate.c:1404
#define void
Definition unzip.h:396

Typedef Documentation

◆ 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
VALUE 
IDENTIFIER 
TOKEN_SHL 
TOKEN_SHR 
TOKEN_LTE 
TOKEN_GTE 
TOKEN_EQ 
TOKEN_EQ_EXACT 
TOKEN_NE 
TOKEN_NE_EXACT 
TOKEN_LOGICAL_AND 
TOKEN_LOGICAL_OR 
TOKEN_ADD_OP 
TOKEN_SUB_OP 
TOKEN_MOD_OP 
TOKEN_OR_OP 
TOKEN_AND_OP 
TOKEN_XOR_OP 
TOKEN_DIV_OP 
TOKEN_MUL_OP 
TOKEN_POW_OP 
STRING_LITERAL 
STRING_IDENTIFIER 

Function Documentation

◆ yydestruct()

void yydestruct ( char * yymsg,
int yytype,
YYSTYPE * yyvaluep,
YYLTYPE * yylocationp,
compileContext* context ) const
static

◆ yyparse()

int yyparse ( compileContext* context)

Variable Documentation

◆ yycheck

const yytype_int8 yycheck[]
static
Initial value:
=
{
0, 28, 29, 26, 15, 5, 27, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 6, 7, 8,
31, 3, 4, 46, 5, 6, 26, 64, 65, 7,
8, 9, 10, 11, 12, 29, 24, 3, 4, 66,
67, 37, 24, 25, 44, 27, 38, 33, 3, 4,
32, 33, 34, 13, 14, 36, 45, 32, 24, 25,
30, 27, 28, 45, 42, 43, 32, 33, 34, 24,
25, 28, 27, 3, 4, 30, 46, 32, 33, 34,
107, 26, 28, 28, 44, 35, 26, 114, 28, 46,
39, 40, 41, 46, 24, 25, 0, 27, 45, 27,
46, 46, 32, 33, 34, 28, 46, 46, 47, 48,
110, 53, 54, 55, 3, 125, 116, 15, 16, 17,
18, 19, 20, 21, 22, 23, 50, 52, 49, -1,
-1, 51, -1, 31, 56, 57, 58, 59, 60, 61,
62, 63
}

◆ yydefact

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

◆ yydefgoto

const yytype_int8 yydefgoto[]
static
Initial value:
=
{
-1, 121, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 122, 25
}

◆ yypact

const yytype_int8 yypact[]
static
Initial value:
=
{
70, -38, -21, 12, -11, 70, 70, 70, 70, -38,
102, 6, -38, -38, 50, 19, 4, 8, 14, 25,
51, 22, 40, -38, 47, 96, 34, -38, 70, 70,
43, -38, -38, -38, 70, 70, 70, 70, 70, 70,
70, 70, 70, 70, 45, 70, 70, 70, 70, 70,
70, 70, 70, 70, 70, 70, 70, 70, 70, 70,
70, 70, 70, 70, 70, 70, 18, 70, -38, -38,
55, -38, -38, -38, -38, -38, -38, -38, -38, -38,
-38, -38, -38, -38, -38, 30, -38, 50, 50, 50,
19, 4, 8, 14, 25, 25, 25, 51, 51, 51,
51, 51, 51, 51, 51, 22, 22, 70, 53, -38,
70, 72, -38, -38, 70, 60, 70, -38, 70, -38,
54, 77, -23, -38, -38, 70, -38
}

◆ yypgoto

const yytype_int8 yypgoto[]
static
Initial value:
=
{
-38, -10, 111, -38, -38, -38, 11, 61, 79, 76,
80, 75, 58, 78, -37, -38, -27, 0, -38
}

◆ yyr1

const yytype_uint8 yyr1[]
static
Initial value:
=
{
0, 47, 48, 48, 49, 49, 50, 50, 50, 50,
50, 50, 50, 50, 50, 51, 51, 51, 51, 52,
52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
52, 52, 53, 53, 53, 53, 54, 54, 55, 55,
55, 55, 56, 56, 57, 57, 58, 58, 59, 59,
60, 60, 60, 60, 61, 61, 61, 61, 61, 61,
61, 61, 61, 62, 62, 62, 63, 63, 63, 63,
64, 64, 64, 65
}

◆ yyr2

const yytype_uint8 yyr2[]
static
Initial value:
=
{
0, 2, 1, 3, 1, 2, 1, 3, 7, 4,
3, 6, 8, 3, 4, 1, 1, 1, 1, 1,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 1, 2, 2, 2, 1, 3, 1, 3,
3, 3, 1, 3, 1, 3, 1, 3, 1, 3,
1, 3, 3, 3, 1, 3, 3, 3, 3, 3,
3, 3, 3, 1, 3, 3, 1, 5, 4, 3,
1, 3, 2, 1
}

◆ yystos

const yytype_uint8 yystos[]
static
Initial value:
=
{
0, 3, 4, 24, 25, 27, 32, 33, 34, 49,
50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 27, 49, 15, 31,
64, 53, 53, 53, 15, 16, 17, 18, 19, 20,
21, 22, 23, 31, 29, 35, 5, 6, 36, 37,
38, 33, 32, 39, 40, 41, 7, 8, 9, 10,
11, 12, 42, 43, 13, 14, 44, 46, 0, 28,
64, 63, 63, 28, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 30, 64, 53, 54, 54, 54,
55, 56, 57, 58, 59, 59, 59, 60, 60, 60,
60, 60, 60, 60, 60, 61, 61, 45, 63, 63,
26, 28, 30, 63, 45, 64, 27, 63, 26, 28,
64, 48, 64, 28, 28, 26, 48
}

◆ yytable

const yytype_uint8 yytable[]
static
Initial value:
=
{
24, 71, 72, 125, 28, 30, 26, 74, 75, 76,
77, 78, 79, 80, 81, 82, 83, 31, 32, 33,
29, 1, 2, 67, 46, 47, 70, 105, 106, 56,
57, 58, 59, 60, 61, 44, 3, 1, 2, 108,
109, 49, 3, 4, 85, 5, 50, 51, 1, 2,
6, 7, 8, 64, 65, 48, 86, 52, 3, 4,
112, 5, 69, 107, 62, 63, 6, 7, 8, 3,
4, 73, 5, 1, 2, 84, 67, 6, 7, 8,
113, 110, 123, 111, 66, 45, 118, 117, 119, 67,
53, 54, 55, 67, 3, 4, 68, 5, 114, 116,
67, 67, 6, 7, 8, 124, 67, 87, 88, 89,
115, 94, 95, 96, 27, 126, 120, 34, 35, 36,
37, 38, 39, 40, 41, 42, 91, 93, 90, 0,
0, 92, 0, 43, 97, 98, 99, 100, 101, 102,
103, 104
}

◆ yytranslate

const yytype_uint8 yytranslate[]
static