recutils
Data Structures | Macros | Typedefs | Functions
rec-sex-tab.c File Reference
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <regex.h>
#include <rec-sex-ast.h>
#include <rec-sex-parser.h>
#include "rec-sex-tab.h"
#include <stddef.h>

Data Structures

union  yyalloc
 

Macros

#define YYBISON   1
 
#define YYBISON_VERSION   "3.0.4"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   1
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define yyparse   sexparse
 
#define yylex   sexlex
 
#define yyerror   sexerror
 
#define yydebug   sexdebug
 
#define yynerrs   sexnerrs
 
#define scanner   (rec_sex_parser_scanner (sex_parser))
 
#define CREATE_NODE_OP1(TYPE, RES, OP)
 
#define CREATE_NODE_OP2(TYPE, RES, OP1, OP2)
 
#define CREATE_NODE_OP3(TYPE, RES, OP1, OP2, OP3)
 
#define YY_NULLPTR   0
 
#define YYERROR_VERBOSE   0
 
#define YY_SEX_REC_SEX_TAB_H_INCLUDED
 
#define YYSIZE_T   size_t
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YY_(Msgid)   Msgid
 
#define YY_ATTRIBUTE(Spec)   /* empty */
 
#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
 
#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))
 
#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))
 
#define YYUSE(E)   ((void) (E))
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#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_NEEDED   1
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYFINAL   13
 
#define YYLAST   157
 
#define YYNTOKENS   35
 
#define YYNNTS   3
 
#define YYNRULES   29
 
#define YYNSTATES   57
 
#define YYUNDEFTOK   2
 
#define YYMAXUTOK   289
 
#define YYTRANSLATE(YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYPACT_NINF   -20
 
#define yypact_value_is_default(Yystate)    (!!((Yystate) == (-20)))
 
#define YYTABLE_NINF   -1
 
#define yytable_value_is_error(Yytable_value)    0
 
#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 YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#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 unsigned char yytype_uint8
 
typedef signed char yytype_int8
 
typedef unsigned short int yytype_uint16
 
typedef short int yytype_int16
 

Functions

void sexerror (rec_sex_parser_t context, const char *err)
 
int sexparse (rec_sex_parser_t sex_parser)
 
void * malloc (YYSIZE_T)
 
void free (void *)
 
int yyparse (rec_sex_parser_t sex_parser)
 

Macro Definition Documentation

◆ _Noreturn

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))

◆ CREATE_NODE_OP1

#define CREATE_NODE_OP1 (   TYPE,
  RES,
  OP 
)
Value:
do \
{ \
/* Create the node. */ \
(RES) = rec_sex_ast_node_new (); \
rec_sex_ast_node_set_type ((RES), (TYPE)); \
\
/* Set children. */ \
rec_sex_ast_node_link ((RES), (OP)); \
} \
while (0)
rec_sex_ast_node_t rec_sex_ast_node_new(void)
Definition: rec-sex-ast.c:92

◆ CREATE_NODE_OP2

#define CREATE_NODE_OP2 (   TYPE,
  RES,
  OP1,
  OP2 
)
Value:
do \
{ \
/* Create the node. */ \
(RES) = rec_sex_ast_node_new (); \
rec_sex_ast_node_set_type ((RES), (TYPE)); \
\
/* Set children. */ \
rec_sex_ast_node_link ((RES), (OP1)); \
rec_sex_ast_node_link ((RES), (OP2)); \
} \
while (0)

◆ CREATE_NODE_OP3

#define CREATE_NODE_OP3 (   TYPE,
  RES,
  OP1,
  OP2,
  OP3 
)
Value:
do \
{ \
/* Create the node. */ \
(RES) = rec_sex_ast_node_new (); \
rec_sex_ast_node_set_type ((RES), (TYPE)); \
\
/* Set children. */ \
rec_sex_ast_node_link ((RES), (OP1)); \
rec_sex_ast_node_link ((RES), (OP2)); \
rec_sex_ast_node_link ((RES), (OP3)); \
} \
while (0)

◆ scanner

#define scanner   (rec_sex_parser_scanner (sex_parser))

◆ YY_

#define YY_ (   Msgid)    Msgid

◆ YY_ATTRIBUTE

#define YY_ATTRIBUTE (   Spec)    /* empty */

◆ YY_ATTRIBUTE_PURE

#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))

◆ YY_ATTRIBUTE_UNUSED

#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))

◆ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

◆ YY_IGNORE_MAYBE_UNINITIALIZED_END

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

◆ YY_INITIAL_VALUE

#define YY_INITIAL_VALUE (   Value)    Value

◆ YY_NULLPTR

#define YY_NULLPTR   0

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

◆ YY_SEX_REC_SEX_TAB_H_INCLUDED

#define YY_SEX_REC_SEX_TAB_H_INCLUDED

◆ 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) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (sex_parser, YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
if(!yyg->yy_init)
Definition: rec-sex-lex.c:938
#define YY_(Msgid)
Definition: rec-sex-tab.c:281
#define YYEMPTY
Definition: rec-sex-tab.c:686

◆ YYBISON

#define YYBISON   1

◆ YYBISON_VERSION

#define YYBISON_VERSION   "3.0.4"

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

◆ YYCOPY

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)

◆ YYCOPY_NEEDED

#define YYCOPY_NEEDED   1

◆ yydebug

#define yydebug   sexdebug

◆ YYDPRINTF

#define YYDPRINTF (   Args)

◆ YYEMPTY

#define YYEMPTY   (-2)

◆ YYEOF

#define YYEOF   0

◆ YYERRCODE

#define YYERRCODE   256

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

◆ yyerror

#define yyerror   sexerror

◆ YYERROR

#define YYERROR   goto yyerrorlab

◆ YYERROR_VERBOSE

#define YYERROR_VERBOSE   0

◆ YYFINAL

#define YYFINAL   13

◆ YYFREE

#define YYFREE   free

◆ YYINITDEPTH

#define YYINITDEPTH   200

◆ YYLAST

#define YYLAST   157

◆ yylex

#define yylex   sexlex

◆ YYMALLOC

#define YYMALLOC   malloc

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

◆ YYMAXUTOK

#define YYMAXUTOK   289

◆ yynerrs

#define yynerrs   sexnerrs

◆ YYNNTS

#define YYNNTS   3

◆ YYNRULES

#define YYNRULES   29

◆ YYNSTATES

#define YYNSTATES   57

◆ YYNTOKENS

#define YYNTOKENS   35

◆ YYPACT_NINF

#define YYPACT_NINF   -20

◆ yypact_value_is_default

#define yypact_value_is_default (   Yystate)     (!!((Yystate) == (-20)))

◆ yyparse

#define yyparse   sexparse

◆ YYPOPSTACK

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

◆ YYPULL

#define YYPULL   1

◆ YYPURE

#define YYPURE   1

◆ YYPUSH

#define YYPUSH   0

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

◆ YYSIZE_T

#define YYSIZE_T   size_t

◆ 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: rec-sex-tab.c:255
#define YYSTACK_GAP_MAXIMUM
Definition: rec-sex-tab.c:419
union YYSTYPE YYSTYPE
Definition: rec-sex-tab.h:96

◆ 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 (0)

◆ YYTABLE_NINF

#define YYTABLE_NINF   -1

◆ yytable_value_is_error

#define yytable_value_is_error (   Yytable_value)     0

◆ YYTERROR

#define YYTERROR   1

◆ YYTRANSLATE

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

◆ YYUNDEFTOK

#define YYUNDEFTOK   2

◆ YYUSE

#define YYUSE (   E)    ((void) (E))

Typedef Documentation

◆ yytype_int16

typedef short int yytype_int16

◆ yytype_int8

typedef signed char yytype_int8

◆ yytype_uint16

typedef unsigned short int yytype_uint16

◆ yytype_uint8

typedef unsigned char yytype_uint8

Function Documentation

◆ free()

void free ( void *  )

◆ malloc()

void* malloc ( YYSIZE_T  )

◆ sexerror()

void sexerror ( rec_sex_parser_t  context,
const char *  err 
)

◆ sexparse()

int sexparse ( rec_sex_parser_t  sex_parser)

◆ yyparse()

int yyparse ( rec_sex_parser_t  sex_parser)