Graphviz 12.0.1~dev.20240716.0800
|
#include <assert.h>
#include <cgraph/gv_ctype.h>
#include <cgraph/streq.h>
#include <expr/exop.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ast/ast.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 | STATIC 265 |
#define | ADDRESS 266 |
#define | ARRAY 267 |
#define | BREAK 268 |
#define | CALL 269 |
#define | CASE 270 |
#define | CONSTANT 271 |
#define | CONTINUE 272 |
#define | DECLARE 273 |
#define | DEFAULT 274 |
#define | DYNAMIC 275 |
#define | ELSE 276 |
#define | EXIT 277 |
#define | FOR 278 |
#define | FUNCTION 279 |
#define | GSUB 280 |
#define | ITERATE 281 |
#define | ITERATER 282 |
#define | ID 283 |
#define | IF 284 |
#define | LABEL 285 |
#define | MEMBER 286 |
#define | NAME 287 |
#define | POS 288 |
#define | PRAGMA 289 |
#define | PRE 290 |
#define | PRINT 291 |
#define | PRINTF 292 |
#define | PROCEDURE 293 |
#define | QUERY 294 |
#define | RAND 295 |
#define | RETURN 296 |
#define | SCANF 297 |
#define | SPLIT 298 |
#define | SPRINTF 299 |
#define | SRAND 300 |
#define | SSCANF 301 |
#define | SUB 302 |
#define | SUBSTR 303 |
#define | SWITCH 304 |
#define | TOKENS 305 |
#define | UNSET 306 |
#define | WHILE 307 |
#define | F2I 308 |
#define | F2S 309 |
#define | I2F 310 |
#define | I2S 311 |
#define | S2B 312 |
#define | S2F 313 |
#define | S2I 314 |
#define | F2X 315 |
#define | I2X 316 |
#define | S2X 317 |
#define | X2F 318 |
#define | X2I 319 |
#define | X2S 320 |
#define | X2X 321 |
#define | XPRINT 322 |
#define | OR 323 |
#define | AND 324 |
#define | EQ 325 |
#define | NE 326 |
#define | LE 327 |
#define | GE 328 |
#define | LSH 329 |
#define | RSH 330 |
#define | IN_OP 331 |
#define | UNARY 332 |
#define | INC 333 |
#define | DEC 334 |
#define | CAST 335 |
#define | MAXTOKEN 336 |
#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 1112 |
#define | YYNTOKENS 107 |
#define | YYNNTS 44 |
#define | YYNRULES 142 |
#define | YYNSTATES 286 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 336 |
#define | YYTRANSLATE(YYX) (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF (-144) |
#define | yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) |
#define | YYTABLE_NINF (-127) |
#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 , STATIC = 265 , ADDRESS = 266 , ARRAY = 267 , BREAK = 268 , CALL = 269 , CASE = 270 , CONSTANT = 271 , CONTINUE = 272 , DECLARE = 273 , DEFAULT = 274 , DYNAMIC = 275 , ELSE = 276 , EXIT = 277 , FOR = 278 , FUNCTION = 279 , GSUB = 280 , ITERATE = 281 , ITERATER = 282 , ID = 283 , IF = 284 , LABEL = 285 , MEMBER = 286 , NAME = 287 , POS = 288 , PRAGMA = 289 , PRE = 290 , PRINT = 291 , PRINTF = 292 , PROCEDURE = 293 , QUERY = 294 , RAND = 295 , RETURN = 296 , SCANF = 297 , SPLIT = 298 , SPRINTF = 299 , SRAND = 300 , SSCANF = 301 , SUB = 302 , SUBSTR = 303 , SWITCH = 304 , TOKENS = 305 , UNSET = 306 , WHILE = 307 , F2I = 308 , F2S = 309 , I2F = 310 , I2S = 311 , S2B = 312 , S2F = 313 , S2I = 314 , F2X = 315 , I2X = 316 , S2X = 317 , X2F = 318 , X2I = 319 , X2S = 320 , X2X = 321 , XPRINT = 322 , OR = 323 , AND = 324 , EQ = 325 , NE = 326 , LE = 327 , GE = 328 , LSH = 329 , RSH = 330 , IN_OP = 331 , UNARY = 332 , INC = 333 , DEC = 334 , CAST = 335 , MAXTOKEN = 336 } |
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 3615 of file exparse.c.
References gv_isalnum(), NULL, and yytname.
Referenced by lexname().
void free | ( | void * | ) |
void * malloc | ( | YYSIZE_T | ) |
|
static |
Definition at line 1621 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 743 of file exparse.c.
Referenced by exop().
|
static |