Graphviz 13.0.0~dev.20241220.2304
|
#include <assert.h>
#include <expr/exop.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ast/ast.h>
#include <util/gv_ctype.h>
#include <util/streq.h>
#include <expr/exgram.h>
#include <limits.h>
Go to the source code of this file.
Data Structures | |
union | EX_STYPE |
union | yyalloc |
Macros | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "3.5.1" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | YYSTYPE EX_STYPE |
#define | yyparse ex_parse |
#define | yylex ex_lex |
#define | yyerror ex_error |
#define | yydebug ex_debug |
#define | yynerrs ex_nerrs |
#define | yylval ex_lval |
#define | yychar ex_char |
#define | YY_CAST(Type, Val) ((Type) (Val)) |
#define | YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) |
#define | YY_NULLPTR ((void*)0) |
#define | YYERROR_VERBOSE 0 |
#define | YY_EX_EXPARSE_H_INCLUDED |
#define | EX_DEBUG 1 |
#define | EX_TOKENTYPE |
#define | MINTOKEN 258 |
#define | INTEGER 259 |
#define | UNSIGNED 260 |
#define | CHARACTER 261 |
#define | FLOATING 262 |
#define | STRING 263 |
#define | VOIDTYPE 264 |
#define | ADDRESS 265 |
#define | ARRAY 266 |
#define | BREAK 267 |
#define | CALL 268 |
#define | CASE 269 |
#define | CONSTANT 270 |
#define | CONTINUE 271 |
#define | DECLARE 272 |
#define | DEFAULT 273 |
#define | DYNAMIC 274 |
#define | ELSE 275 |
#define | EXIT 276 |
#define | FOR 277 |
#define | FUNCTION 278 |
#define | GSUB 279 |
#define | ITERATE 280 |
#define | ITERATOR 281 |
#define | ID 282 |
#define | IF 283 |
#define | LABEL 284 |
#define | MEMBER 285 |
#define | NAME 286 |
#define | POS 287 |
#define | PRAGMA 288 |
#define | PRE 289 |
#define | PRINT 290 |
#define | PRINTF 291 |
#define | PROCEDURE 292 |
#define | QUERY 293 |
#define | RAND 294 |
#define | RETURN 295 |
#define | SCANF 296 |
#define | SPLIT 297 |
#define | SPRINTF 298 |
#define | SRAND 299 |
#define | SSCANF 300 |
#define | SUB 301 |
#define | SUBSTR 302 |
#define | SWITCH 303 |
#define | TOKENS 304 |
#define | UNSET 305 |
#define | WHILE 306 |
#define | F2I 307 |
#define | F2S 308 |
#define | I2F 309 |
#define | I2S 310 |
#define | S2B 311 |
#define | S2F 312 |
#define | S2I 313 |
#define | F2X 314 |
#define | I2X 315 |
#define | S2X 316 |
#define | X2F 317 |
#define | X2I 318 |
#define | X2S 319 |
#define | X2X 320 |
#define | XPRINT 321 |
#define | OR 322 |
#define | AND 323 |
#define | EQ 324 |
#define | NE 325 |
#define | LE 326 |
#define | GE 327 |
#define | LSH 328 |
#define | RSH 329 |
#define | IN_OP 330 |
#define | UNARY 331 |
#define | INC 332 |
#define | DEC 333 |
#define | CAST 334 |
#define | MAXTOKEN 335 |
#define | EX_STYPE_IS_TRIVIAL 1 |
#define | EX_STYPE_IS_DECLARED 1 |
#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 | YYUSE(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 | YYFINAL 3 |
#define | YYLAST 1118 |
#define | YYNTOKENS 106 |
#define | YYNNTS 42 |
#define | YYNRULES 139 |
#define | YYNSTATES 283 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 335 |
#define | YYTRANSLATE(YYX) (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF (-180) |
#define | yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) |
#define | YYTABLE_NINF (-124) |
#define | yytable_value_is_error(Yyn) ((Yyn) == YYTABLE_NINF) |
#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 union EX_STYPE | EX_STYPE |
typedef signed char | yytype_int8 |
typedef short | yytype_int16 |
typedef unsigned char | yytype_uint8 |
typedef unsigned short | yytype_uint16 |
typedef yytype_int16 | yy_state_t |
typedef int | yy_state_fast_t |
Enumerations | |
enum | ex_tokentype { MINTOKEN = 258 , INTEGER = 259 , UNSIGNED = 260 , CHARACTER = 261 , FLOATING = 262 , STRING = 263 , VOIDTYPE = 264 , ADDRESS = 265 , ARRAY = 266 , BREAK = 267 , CALL = 268 , CASE = 269 , CONSTANT = 270 , CONTINUE = 271 , DECLARE = 272 , DEFAULT = 273 , DYNAMIC = 274 , ELSE = 275 , EXIT = 276 , FOR = 277 , FUNCTION = 278 , GSUB = 279 , ITERATE = 280 , ITERATOR = 281 , ID = 282 , IF = 283 , LABEL = 284 , MEMBER = 285 , NAME = 286 , POS = 287 , PRAGMA = 288 , PRE = 289 , PRINT = 290 , PRINTF = 291 , PROCEDURE = 292 , QUERY = 293 , RAND = 294 , RETURN = 295 , SCANF = 296 , SPLIT = 297 , SPRINTF = 298 , SRAND = 299 , SSCANF = 300 , SUB = 301 , SUBSTR = 302 , SWITCH = 303 , TOKENS = 304 , UNSET = 305 , WHILE = 306 , F2I = 307 , F2S = 308 , I2F = 309 , I2S = 310 , S2B = 311 , S2F = 312 , S2I = 313 , F2X = 314 , I2X = 315 , S2X = 316 , X2F = 317 , X2I = 318 , X2S = 319 , X2X = 320 , XPRINT = 321 , OR = 322 , AND = 323 , EQ = 324 , NE = 325 , LE = 326 , GE = 327 , LSH = 328 , RSH = 329 , IN_OP = 330 , UNARY = 331 , INC = 332 , DEC = 333 , CAST = 334 , MAXTOKEN = 335 } |
Functions | |
int | ex_parse (void) |
void | ex_error (const char *message) |
void * | malloc (YYSIZE_T) |
void | free (void *) |
static void | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) |
const char * | exop (size_t index) |
Variables | |
EX_STYPE | ex_lval |
static const yytype_int8 | yytranslate [] |
static const char *const | yytname [] |
static const yytype_int16 | yypact [] |
static const yytype_uint8 | yydefact [] |
static const yytype_int16 | yypgoto [] |
static const yytype_int16 | yydefgoto [] |
static const yytype_int16 | yytable [] |
static const yytype_int16 | yycheck [] |
static const yytype_uint8 | yystos [] |
static const yytype_uint8 | yyr1 [] |
static const yytype_int8 | yyr2 [] |
int | yychar |
YYSTYPE | yylval |
int | yynerrs |
#define YYBACKUP | ( | Token, | |
Value | |||
) |
#define yypact_value_is_default | ( | Yyn | ) | ((Yyn) == YYPACT_NINF) |
#define YYSIZE_MAXIMUM |
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define YYSTACK_BYTES | ( | N | ) |
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
#define yytable_value_is_error | ( | Yyn | ) | ((Yyn) == YYTABLE_NINF) |
#define YYTRANSLATE | ( | YYX | ) | (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
typedef int yy_state_fast_t |
typedef yytype_int16 yy_state_t |
typedef short yytype_int16 |
typedef signed char yytype_int8 |
typedef unsigned short yytype_uint16 |
typedef unsigned char yytype_uint8 |
enum ex_tokentype |
void ex_error | ( | const char * | message | ) |
int ex_parse | ( | void | ) |
const char * exop | ( | size_t | id | ) |
retrieve a string representation of a lexer token
id | The numerical identifier of the sought token as an offset from MINTOKEN |
Definition at line 3579 of file exparse.c.
References gv_isalnum(), NULL, and yytname.
Referenced by lexname().
void free | ( | void * | ) |
void * malloc | ( | YYSIZE_T | ) |
|
static |
Definition at line 1616 of file exparse.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.
|
extern |
Referenced by extoken_fn().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 741 of file exparse.c.
Referenced by exop().
|
static |