GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-b4e4cb0fe9
sqlp.tab.c File Reference
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <grass/sqlp.h>
#include "sqlp.tab.h"
#include <limits.h>
#include <stdio.h>
Include dependency graph for sqlp.tab.c:

Go to the source code of this file.

Macros

#define YYBISON   30705
 
#define YYBISON_VERSION   "3.7.5"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define YYDEBUG   1
 
#define YYERROR_VERBOSE   1
 
#define YY_CAST(Type, Val)   ((Type) (Val))
 
#define YY_REINTERPRET_CAST(Type, Val)   ((Type) (Val))
 
#define YY_NULLPTR   ((void*)0)
 
#define YYPTRDIFF_T   long
 
#define YYPTRDIFF_MAXIMUM   LONG_MAX
 
#define YYSIZE_T   unsigned
 
#define YYSIZE_MAXIMUM
 
#define YYSIZEOF(X)   YY_CAST (YYPTRDIFF_T, sizeof (X))
 
#define YY_(Msgid)   Msgid
 
#define YY_ATTRIBUTE_PURE
 
#define YY_ATTRIBUTE_UNUSED
 
#define YY_USE(E)   ((void) (E))
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_IGNORE_USELESS_CAST_BEGIN
 
#define YY_IGNORE_USELESS_CAST_END
 
#define YY_ASSERT(E)   ((void) (0 && (E)))
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYMALLOC   malloc
 
#define YYFREE   free
 
#define YYSTACK_GAP_MAXIMUM   (YYSIZEOF (union yyalloc) - 1)
 
#define YYSTACK_BYTES(N)
 
#define YYCOPY_NEEDED   1
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYFINAL   27
 
#define YYLAST   156
 
#define YYNTOKENS   48
 
#define YYNNTS   32
 
#define YYNRULES   87
 
#define YYNSTATES   157
 
#define YYMAXUTOK   294
 
#define YYTRANSLATE(YYX)
 
#define YY_ACCESSING_SYMBOL(State)   YY_CAST (yysymbol_kind_t, yystos[State])
 
#define YYPACT_NINF   (-52)
 
#define yypact_value_is_default(Yyn)    ((Yyn) == YYPACT_NINF)
 
#define YYTABLE_NINF   (-1)
 
#define yytable_value_is_error(Yyn)    0
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYACCEPT   goto yyacceptlab
 
#define YYABORT   goto yyabortlab
 
#define YYERROR   goto yyerrorlab
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYERRCODE   YYUNDEF
 
#define YYFPRINTF   fprintf
 
#define YYDPRINTF(Args)
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#define YY_SYMBOL_PRINT(Title, Kind, 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 enum yysymbol_kind_t yysymbol_kind_t
 
typedef signed char yytype_int8
 
typedef short yytype_int16
 
typedef unsigned char yytype_uint8
 
typedef unsigned short yytype_uint16
 
typedef yytype_uint8 yy_state_t
 
typedef int yy_state_fast_t
 

Enumerations

enum  yysymbol_kind_t {
  YYSYMBOL_YYEMPTY = -2 , YYSYMBOL_YYEOF = 0 , YYSYMBOL_YYerror = 1 , YYSYMBOL_YYUNDEF = 2 ,
  YYSYMBOL_COMPARISON_OPERATOR = 3 , YYSYMBOL_NAME = 4 , YYSYMBOL_STRING = 5 , YYSYMBOL_INTNUM = 6 ,
  YYSYMBOL_FLOATNUM = 7 , YYSYMBOL_ADD = 8 , YYSYMBOL_DROP = 9 , YYSYMBOL_COLUMN = 10 ,
  YYSYMBOL_EQUAL = 11 , YYSYMBOL_SELECT = 12 , YYSYMBOL_FROM = 13 , YYSYMBOL_WHERE = 14 ,
  YYSYMBOL_DELETE = 15 , YYSYMBOL_INSERT = 16 , YYSYMBOL_INTO = 17 , YYSYMBOL_VALUES = 18 ,
  YYSYMBOL_UPDATE = 19 , YYSYMBOL_SET = 20 , YYSYMBOL_AND = 21 , YYSYMBOL_OR = 22 ,
  YYSYMBOL_NOT = 23 , YYSYMBOL_ALTER = 24 , YYSYMBOL_TABLE = 25 , YYSYMBOL_CREATE = 26 ,
  YYSYMBOL_NULL_VALUE = 27 , YYSYMBOL_VARCHAR = 28 , YYSYMBOL_INT = 29 , YYSYMBOL_INTEGER = 30 ,
  YYSYMBOL_DOUBLE = 31 , YYSYMBOL_PRECISION = 32 , YYSYMBOL_DATE = 33 , YYSYMBOL_TIME = 34 ,
  YYSYMBOL_ORDER = 35 , YYSYMBOL_BY = 36 , YYSYMBOL_IS = 37 , YYSYMBOL_ASC = 38 ,
  YYSYMBOL_DESC = 39 , YYSYMBOL_40_ = 40 , YYSYMBOL_41_ = 41 , YYSYMBOL_42_ = 42 ,
  YYSYMBOL_43_ = 43 , YYSYMBOL_44_ = 44 , YYSYMBOL_45_ = 45 , YYSYMBOL_46_ = 46 ,
  YYSYMBOL_47_ = 47 , YYSYMBOL_YYACCEPT = 48 , YYSYMBOL_y_sql = 49 , YYSYMBOL_y_alter = 50 ,
  YYSYMBOL_y_create = 51 , YYSYMBOL_y_drop = 52 , YYSYMBOL_y_select = 53 , YYSYMBOL_y_delete = 54 ,
  YYSYMBOL_y_insert = 55 , YYSYMBOL_y_update = 56 , YYSYMBOL_y_columndefs = 57 , YYSYMBOL_y_columndef = 58 ,
  YYSYMBOL_y_columns = 59 , YYSYMBOL_y_column_list = 60 , YYSYMBOL_y_table = 61 , YYSYMBOL_y_values = 62 ,
  YYSYMBOL_y_value_list = 63 , YYSYMBOL_y_assignments = 64 , YYSYMBOL_y_assignment = 65 , YYSYMBOL_y_condition = 66 ,
  YYSYMBOL_y_sub_condition = 67 , YYSYMBOL_y_sub_condition2 = 68 , YYSYMBOL_y_boolean = 69 , YYSYMBOL_y_comparison = 70 ,
  YYSYMBOL_y_expression = 71 , YYSYMBOL_y_product = 72 , YYSYMBOL_y_term = 73 , YYSYMBOL_y_atom = 74 ,
  YYSYMBOL_y_value = 75 , YYSYMBOL_y_column = 76 , YYSYMBOL_y_order = 77 , YYSYMBOL_y_order_asc = 78 ,
  YYSYMBOL_y_order_desc = 79
}
 
enum  { YYENOMEM = -2 }
 

Functions

int yylex (void)
 
void * malloc (YYSIZE_T)
 
void free (void *)
 
int yyparse (void)
 

Variables

int yydebug
 
int yychar
 
YYSTYPE yylval
 
int yynerrs
 

Macro Definition Documentation

◆ YY_

#define YY_ (   Msgid)    Msgid

Definition at line 326 of file sqlp.tab.c.

◆ YY_ACCESSING_SYMBOL

#define YY_ACCESSING_SYMBOL (   State)    YY_CAST (yysymbol_kind_t, yystos[State])

Accessing symbol of state STATE.

Definition at line 593 of file sqlp.tab.c.

◆ YY_ASSERT

#define YY_ASSERT (   E)    ((void) (0 && (E)))

Definition at line 386 of file sqlp.tab.c.

◆ YY_ATTRIBUTE_PURE

#define YY_ATTRIBUTE_PURE

Definition at line 335 of file sqlp.tab.c.

◆ YY_ATTRIBUTE_UNUSED

#define YY_ATTRIBUTE_UNUSED

Definition at line 343 of file sqlp.tab.c.

◆ YY_CAST

#define YY_CAST (   Type,
  Val 
)    ((Type) (Val))

Definition at line 88 of file sqlp.tab.c.

◆ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Definition at line 366 of file sqlp.tab.c.

◆ YY_IGNORE_MAYBE_UNINITIALIZED_END

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Definition at line 367 of file sqlp.tab.c.

◆ YY_IGNORE_USELESS_CAST_BEGIN

#define YY_IGNORE_USELESS_CAST_BEGIN

Definition at line 381 of file sqlp.tab.c.

◆ YY_IGNORE_USELESS_CAST_END

#define YY_IGNORE_USELESS_CAST_END

Definition at line 382 of file sqlp.tab.c.

◆ YY_INITIAL_VALUE

#define YY_INITIAL_VALUE (   Value)    Value

Definition at line 363 of file sqlp.tab.c.

◆ YY_LOCATION_PRINT

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

Definition at line 856 of file sqlp.tab.c.

◆ YY_NULLPTR

#define YY_NULLPTR   ((void*)0)

Definition at line 100 of file sqlp.tab.c.

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)
Value:
do { \
if (yydebug) \
yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)
int yydebug
Definition: sqlp.tab.c:965

Definition at line 957 of file sqlp.tab.c.

◆ YY_REINTERPRET_CAST

#define YY_REINTERPRET_CAST (   Type,
  Val 
)    ((Type) (Val))

Definition at line 89 of file sqlp.tab.c.

◆ YY_STACK_PRINT

#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (0)

Definition at line 926 of file sqlp.tab.c.

◆ YY_SYMBOL_PRINT

#define YY_SYMBOL_PRINT (   Title,
  Kind,
  Value,
  Location 
)
Value:
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Kind, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)

Definition at line 860 of file sqlp.tab.c.

◆ YY_USE

#define YY_USE (   E)    ((void) (E))

Definition at line 349 of file sqlp.tab.c.

◆ YYABORT

#define YYABORT   goto yyabortlab

Definition at line 812 of file sqlp.tab.c.

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

Definition at line 811 of file sqlp.tab.c.

◆ YYBACKUP

#define YYBACKUP (   Token,
  Value 
)
Value:
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
#define YY_(Msgid)
Definition: sqlp.tab.c:326
int yychar
Definition: sqlp.tab.c:1015
@ YYEMPTY
Definition: sqlp.tab.h:53
if(!(yy_init))
Definition: sqlp.yy.c:775

Definition at line 818 of file sqlp.tab.c.

◆ YYBISON

#define YYBISON   30705

Definition at line 49 of file sqlp.tab.c.

◆ YYBISON_VERSION

#define YYBISON_VERSION   "3.7.5"

Definition at line 52 of file sqlp.tab.c.

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

Definition at line 809 of file sqlp.tab.c.

◆ YYCOPY

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

Definition at line 503 of file sqlp.tab.c.

◆ YYCOPY_NEEDED

#define YYCOPY_NEEDED   1

Definition at line 475 of file sqlp.tab.c.

◆ YYDEBUG

#define YYDEBUG   1

Definition at line 77 of file sqlp.tab.c.

◆ YYDPRINTF

#define YYDPRINTF (   Args)
Value:
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (0)

Definition at line 848 of file sqlp.tab.c.

◆ YYERRCODE

#define YYERRCODE   YYUNDEF

Definition at line 837 of file sqlp.tab.c.

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

Definition at line 808 of file sqlp.tab.c.

◆ YYERROR

#define YYERROR   goto yyerrorlab

Definition at line 813 of file sqlp.tab.c.

◆ YYERROR_VERBOSE

#define YYERROR_VERBOSE   1

Definition at line 78 of file sqlp.tab.c.

◆ YYFINAL

#define YYFINAL   27

Definition at line 516 of file sqlp.tab.c.

◆ YYFPRINTF

#define YYFPRINTF   fprintf

Definition at line 845 of file sqlp.tab.c.

◆ YYFREE

#define YYFREE   free

Definition at line 447 of file sqlp.tab.c.

◆ YYINITDEPTH

#define YYINITDEPTH   200

Definition at line 976 of file sqlp.tab.c.

◆ YYLAST

#define YYLAST   156

Definition at line 518 of file sqlp.tab.c.

◆ YYMALLOC

#define YYMALLOC   malloc

Definition at line 441 of file sqlp.tab.c.

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

Definition at line 987 of file sqlp.tab.c.

◆ YYMAXUTOK

#define YYMAXUTOK   294

Definition at line 530 of file sqlp.tab.c.

◆ YYNNTS

#define YYNNTS   32

Definition at line 523 of file sqlp.tab.c.

◆ YYNRULES

#define YYNRULES   87

Definition at line 525 of file sqlp.tab.c.

◆ YYNSTATES

#define YYNSTATES   157

Definition at line 527 of file sqlp.tab.c.

◆ YYNTOKENS

#define YYNTOKENS   48

Definition at line 521 of file sqlp.tab.c.

◆ YYPACT_NINF

#define YYPACT_NINF   (-52)

Definition at line 639 of file sqlp.tab.c.

◆ yypact_value_is_default

#define yypact_value_is_default (   Yyn)     ((Yyn) == YYPACT_NINF)

Definition at line 641 of file sqlp.tab.c.

◆ YYPOPSTACK

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

◆ YYPTRDIFF_MAXIMUM

#define YYPTRDIFF_MAXIMUM   LONG_MAX

Definition at line 286 of file sqlp.tab.c.

◆ YYPTRDIFF_T

#define YYPTRDIFF_T   long

Definition at line 285 of file sqlp.tab.c.

◆ YYPULL

#define YYPULL   1

Definition at line 64 of file sqlp.tab.c.

◆ YYPURE

#define YYPURE   0

Definition at line 58 of file sqlp.tab.c.

◆ YYPUSH

#define YYPUSH   0

Definition at line 61 of file sqlp.tab.c.

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 816 of file sqlp.tab.c.

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM
Value:
: YY_CAST (YYSIZE_T, -1)))
#define YYPTRDIFF_MAXIMUM
Definition: sqlp.tab.c:286
#define YY_CAST(Type, Val)
Definition: sqlp.tab.c:88
#define YYSIZE_T
Definition: sqlp.tab.c:299
#define YYPTRDIFF_T
Definition: sqlp.tab.c:285

Definition at line 303 of file sqlp.tab.c.

◆ YYSIZE_T

#define YYSIZE_T   unsigned

Definition at line 299 of file sqlp.tab.c.

◆ YYSIZEOF

#define YYSIZEOF (   X)    YY_CAST (YYPTRDIFF_T, sizeof (X))

Definition at line 309 of file sqlp.tab.c.

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

Definition at line 55 of file sqlp.tab.c.

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 427 of file sqlp.tab.c.

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 430 of file sqlp.tab.c.

◆ YYSTACK_BYTES

#define YYSTACK_BYTES (   N)
Value:
#define N
Definition: e_intersect.c:926
yytype_uint8 yy_state_t
Definition: sqlp.tab.c:313
#define YYSIZEOF(X)
Definition: sqlp.tab.c:309
#define YYSTACK_GAP_MAXIMUM
Definition: sqlp.tab.c:467

Definition at line 471 of file sqlp.tab.c.

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

Definition at line 428 of file sqlp.tab.c.

◆ YYSTACK_GAP_MAXIMUM

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

Definition at line 467 of file sqlp.tab.c.

◆ YYSTACK_RELOCATE

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

Definition at line 482 of file sqlp.tab.c.

◆ YYTABLE_NINF

#define YYTABLE_NINF   (-1)

Definition at line 644 of file sqlp.tab.c.

◆ yytable_value_is_error

#define yytable_value_is_error (   Yyn)     0

Definition at line 646 of file sqlp.tab.c.

◆ YYTRANSLATE

#define YYTRANSLATE (   YYX)
Value:
(0 <= (YYX) && (YYX) <= YYMAXUTOK \
? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
yysymbol_kind_t
Definition: sqlp.tab.c:107
@ YYSYMBOL_YYUNDEF
Definition: sqlp.tab.c:111
#define YYMAXUTOK
Definition: sqlp.tab.c:530

Definition at line 535 of file sqlp.tab.c.

Typedef Documentation

◆ yy_state_fast_t

typedef int yy_state_fast_t

Definition at line 316 of file sqlp.tab.c.

◆ yy_state_t

Definition at line 313 of file sqlp.tab.c.

◆ yysymbol_kind_t

Definition at line 1 of file sqlp.tab.c.

◆ yytype_int16

typedef short yytype_int16

Definition at line 237 of file sqlp.tab.c.

◆ yytype_int8

typedef signed char yytype_int8

Definition at line 229 of file sqlp.tab.c.

◆ yytype_uint16

typedef unsigned short yytype_uint16

Definition at line 269 of file sqlp.tab.c.

◆ yytype_uint8

typedef unsigned char yytype_uint8

Definition at line 258 of file sqlp.tab.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
YYENOMEM 

Definition at line 806 of file sqlp.tab.c.

◆ yysymbol_kind_t

Enumerator
YYSYMBOL_YYEMPTY 
YYSYMBOL_YYEOF 
YYSYMBOL_YYerror 
YYSYMBOL_YYUNDEF 
YYSYMBOL_COMPARISON_OPERATOR 
YYSYMBOL_NAME 
YYSYMBOL_STRING 
YYSYMBOL_INTNUM 
YYSYMBOL_FLOATNUM 
YYSYMBOL_ADD 
YYSYMBOL_DROP 
YYSYMBOL_COLUMN 
YYSYMBOL_EQUAL 
YYSYMBOL_SELECT 
YYSYMBOL_FROM 
YYSYMBOL_WHERE 
YYSYMBOL_DELETE 
YYSYMBOL_INSERT 
YYSYMBOL_INTO 
YYSYMBOL_VALUES 
YYSYMBOL_UPDATE 
YYSYMBOL_SET 
YYSYMBOL_AND 
YYSYMBOL_OR 
YYSYMBOL_NOT 
YYSYMBOL_ALTER 
YYSYMBOL_TABLE 
YYSYMBOL_CREATE 
YYSYMBOL_NULL_VALUE 
YYSYMBOL_VARCHAR 
YYSYMBOL_INT 
YYSYMBOL_INTEGER 
YYSYMBOL_DOUBLE 
YYSYMBOL_PRECISION 
YYSYMBOL_DATE 
YYSYMBOL_TIME 
YYSYMBOL_ORDER 
YYSYMBOL_BY 
YYSYMBOL_IS 
YYSYMBOL_ASC 
YYSYMBOL_DESC 
YYSYMBOL_40_ 
YYSYMBOL_41_ 
YYSYMBOL_42_ 
YYSYMBOL_43_ 
YYSYMBOL_44_ 
YYSYMBOL_45_ 
YYSYMBOL_46_ 
YYSYMBOL_47_ 
YYSYMBOL_YYACCEPT 
YYSYMBOL_y_sql 
YYSYMBOL_y_alter 
YYSYMBOL_y_create 
YYSYMBOL_y_drop 
YYSYMBOL_y_select 
YYSYMBOL_y_delete 
YYSYMBOL_y_insert 
YYSYMBOL_y_update 
YYSYMBOL_y_columndefs 
YYSYMBOL_y_columndef 
YYSYMBOL_y_columns 
YYSYMBOL_y_column_list 
YYSYMBOL_y_table 
YYSYMBOL_y_values 
YYSYMBOL_y_value_list 
YYSYMBOL_y_assignments 
YYSYMBOL_y_assignment 
YYSYMBOL_y_condition 
YYSYMBOL_y_sub_condition 
YYSYMBOL_y_sub_condition2 
YYSYMBOL_y_boolean 
YYSYMBOL_y_comparison 
YYSYMBOL_y_expression 
YYSYMBOL_y_product 
YYSYMBOL_y_term 
YYSYMBOL_y_atom 
YYSYMBOL_y_value 
YYSYMBOL_y_column 
YYSYMBOL_y_order 
YYSYMBOL_y_order_asc 
YYSYMBOL_y_order_desc 

Definition at line 106 of file sqlp.tab.c.

Function Documentation

◆ free()

◆ malloc()

◆ yylex()

int yylex ( void  )

◆ yyparse()

Variable Documentation

◆ yychar

int yychar

Definition at line 1015 of file sqlp.tab.c.

Referenced by yyparse().

◆ yydebug

int yydebug

Definition at line 965 of file sqlp.tab.c.

◆ yylval

YYSTYPE yylval

Definition at line 1018 of file sqlp.tab.c.

◆ yynerrs

int yynerrs

Definition at line 1020 of file sqlp.tab.c.