#include "awk.h"Go to the source code of this file.
Classes | |
| union | YYSTYPE |
| union | yyalloc |
| struct | token |
| struct | finfo |
| struct | fdesc |
Defines | |
| #define | YYBISON 1 |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYPURE 0 |
| #define | YYLSP_NEEDED 0 |
| #define | FUNC_CALL 258 |
| #define | NAME 259 |
| #define | REGEXP 260 |
| #define | ERROR 261 |
| #define | YNUMBER 262 |
| #define | YSTRING 263 |
| #define | RELOP 264 |
| #define | IO_OUT 265 |
| #define | IO_IN 266 |
| #define | ASSIGNOP 267 |
| #define | ASSIGN 268 |
| #define | MATCHOP 269 |
| #define | CONCAT_OP 270 |
| #define | LEX_BEGIN 271 |
| #define | LEX_END 272 |
| #define | LEX_IF 273 |
| #define | LEX_ELSE 274 |
| #define | LEX_RETURN 275 |
| #define | LEX_DELETE 276 |
| #define | LEX_SWITCH 277 |
| #define | LEX_CASE 278 |
| #define | LEX_DEFAULT 279 |
| #define | LEX_WHILE 280 |
| #define | LEX_DO 281 |
| #define | LEX_FOR 282 |
| #define | LEX_BREAK 283 |
| #define | LEX_CONTINUE 284 |
| #define | LEX_PRINT 285 |
| #define | LEX_PRINTF 286 |
| #define | LEX_NEXT 287 |
| #define | LEX_EXIT 288 |
| #define | LEX_FUNCTION 289 |
| #define | LEX_GETLINE 290 |
| #define | LEX_NEXTFILE 291 |
| #define | LEX_IN 292 |
| #define | LEX_AND 293 |
| #define | LEX_OR 294 |
| #define | INCREMENT 295 |
| #define | DECREMENT 296 |
| #define | LEX_BUILTIN 297 |
| #define | LEX_LENGTH 298 |
| #define | NEWLINE 299 |
| #define | SLASH_BEFORE_EQUAL 300 |
| #define | UNARY 301 |
| #define | CAN_FREE TRUE |
| #define | DONT_FREE FALSE |
| #define | YYDEBUG_LEXER_TEXT (lexeme) |
| #define | HASHSIZE 1021 |
| #define | YYDEBUG 0 |
| #define | YYERROR_VERBOSE 0 |
| #define | yystype YYSTYPE |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYSTYPE_IS_TRIVIAL 1 |
| #define | YYSTACK_ALLOC malloc |
| #define | YYSTACK_FREE free |
| #define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| #define | YYSTACK_BYTES(N) |
| #define | YYCOPY(To, From, Count) |
| #define | YYSTACK_RELOCATE(Stack) |
| #define | YYFINAL 5 |
| #define | YYLAST 1008 |
| #define | YYNTOKENS 67 |
| #define | YYNNTS 53 |
| #define | YYNRULES 155 |
| #define | YYNSTATES 293 |
| #define | YYUNDEFTOK 2 |
| #define | YYMAXUTOK 301 |
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYPACT_NINF -236 |
| #define | YYTABLE_NINF -93 |
| #define | YYSIZE_T unsigned int |
| #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 yyerrlab1 |
| #define | YYFAIL goto yyerrlab |
| #define | YYRECOVERING() (!!yyerrstatus) |
| #define | YYBACKUP(Token, Value) |
| #define | YYTERROR 1 |
| #define | YYERRCODE 256 |
| #define | YYLLOC_DEFAULT(Current, Rhs, N) |
| #define | YYLEX yylex () |
| #define | YYDPRINTF(Args) |
| #define | YYDSYMPRINT(Args) |
| #define | YYDSYMPRINTF(Title, Token, Value, Location) |
| #define | YY_STACK_PRINT(Bottom, Top) |
| #define | YY_REDUCE_PRINT(Rule) |
| #define | YYINITDEPTH 200 |
| #define | YYMAXDEPTH 10000 |
| #define | YYPOPSTACK (yyvsp--, yyssp--) |
| #define | ARGS 0xFF |
| #define | A(n) (1<<(n)) |
| #define | VERSION_MASK 0xFF00 |
| #define | NOT_OLD 0x0100 |
| #define | NOT_POSIX 0x0200 |
| #define | GAWKX 0x0400 |
| #define | RESX 0x0800 |
| #define | SLOP 128 |
| #define | tokadd(x) (*tok++ = (x), tok == tokend ? tokexpand() : tok) |
| #define | nextc() |
| #define | pushback() (lexptr && lexptr > lexptr_begin ? lexptr-- : lexptr) |
| #define | SMART_ALECK 1 |
Typedefs | |
| typedef short | yysigned_char |
Enumerations | |
| enum | yytokentype { FUNC_CALL = 258, NAME = 259, REGEXP = 260, ERROR = 261, YNUMBER = 262, YSTRING = 263, RELOP = 264, IO_OUT = 265, IO_IN = 266, ASSIGNOP = 267, ASSIGN = 268, MATCHOP = 269, CONCAT_OP = 270, LEX_BEGIN = 271, LEX_END = 272, LEX_IF = 273, LEX_ELSE = 274, LEX_RETURN = 275, LEX_DELETE = 276, LEX_SWITCH = 277, LEX_CASE = 278, LEX_DEFAULT = 279, LEX_WHILE = 280, LEX_DO = 281, LEX_FOR = 282, LEX_BREAK = 283, LEX_CONTINUE = 284, LEX_PRINT = 285, LEX_PRINTF = 286, LEX_NEXT = 287, LEX_EXIT = 288, LEX_FUNCTION = 289, LEX_GETLINE = 290, LEX_NEXTFILE = 291, LEX_IN = 292, LEX_AND = 293, LEX_OR = 294, INCREMENT = 295, DECREMENT = 296, LEX_BUILTIN = 297, LEX_LENGTH = 298, NEWLINE = 299, SLASH_BEFORE_EQUAL = 300, UNARY = 301 } |
| enum | defref { FUNC_DEFINE, FUNC_USE } |
Functions | |
| static char *get_src_buf | P ((void)) |
| static void | yydestruct (int yytype, YYSTYPE *yyvaluep) |
| int | yyparse () |
| const char * | getfname (register NODE *(*fptr)(NODE *)) |
| static char * | get_src_buf () |
| char * | tokexpand () |
| static void | allow_newline (void) |
| static NODE * | node_common (NODETYPE op) |
| NODE * | node (NODE *left, NODETYPE op, NODE *right) |
| static NODE * | snode (NODE *subn, NODETYPE op, int idx) |
| static NODE * | make_for_loop (NODE *init, NODE *cond, NODE *incr) |
| static int | dup_parms (NODE *func) |
| static int | parms_shadow (const char *fname, NODE *func) |
| NODE * | install (char *name, NODE *value) |
| NODE * | lookup (const char *name) |
| static int | var_comp (const void *v1, const void *v2) |
| static void | valinfo (NODE *n, FILE *fp) |
| void | dump_vars (const char *fname) |
| void | release_all_vars () |
| static int | fcompare (const void *p1, const void *p2) |
| void | dump_funcs () |
| void | shadow_funcs () |
| static NODE * | append_right (NODE *list, NODE *new) |
| static NODE * | append_pattern (NODE **list, NODE *patt) |
| static void | func_install (NODE *params, NODE *def) |
| static void | pop_var (NODE *np, int freeit) |
| static void | pop_params (NODE *params) |
| static NODE * | make_param (char *name) |
| static void | check_funcs () |
| static void | param_sanity (NODE *arglist) |
| NODE * | variable (char *name, int can_free, NODETYPE type) |
| static NODE * | mk_rexp (NODE *exp) |
| static int | isnoeffect (NODETYPE type) |
| static int | isassignable (register NODE *n) |
| NODE * | stopme (NODE *tree ATTRIBUTE_UNUSED) |
| static void | dumpintlstr (const char *str, size_t len) |
| static void | dumpintlstr2 (const char *str1, size_t len1, const char *str2, size_t len2) |
| static void | count_args (NODE *tree) |
| static int | isarray (NODE *n) |
Variables | |
| static int | want_regexp |
| static int | can_return |
| static int | begin_or_end_rule = FALSE |
| static int | parsing_end_rule = FALSE |
| static int | in_print = FALSE |
| static int | in_parens = 0 |
| static char * | lexptr |
| static char * | lexend |
| static char * | lexptr_begin |
| static char * | lexeme |
| static char * | thisline = NULL |
| static int | param_counter |
| static char * | tokstart = NULL |
| static char * | tok = NULL |
| static char * | tokend |
| static long | func_count |
| NODE * | variables [HASHSIZE] |
| static int | var_count |
| char * | source |
| int | sourceline |
| src * | srcfiles |
| int | numfiles |
| int | errcount |
| NODE * | begin_block |
| NODE * | end_block |
| static char | builtin_func [] = "@builtin" |
| static const unsigned char | yyr1 [] |
| static const unsigned char | yyr2 [] |
| static const unsigned char | yydefact [] |
| static const short | yydefgoto [] |
| static const short | yypact [] |
| static const short | yypgoto [] |
| static const short | yytable [] |
| static const short | yycheck [] |
| static const unsigned char | yystos [] |
| int | yychar |
| YYSTYPE | yylval |
| int | yynerrs |
| static const struct token | tokentab [] |
| static struct fdesc * | ftable [HASHSIZE] |
|
|
Definition at line 2824 of file awkgram.c. Referenced by snode(). |
|
|
Definition at line 2823 of file awkgram.c. Referenced by snode(). |
|
|
Definition at line 112 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 111 of file awkgram.c. Referenced by yylex(). |
|
|
|
|
|
|
|
|
Definition at line 140 of file awkgram.c. Referenced by yylex(). |
|
|
|
|
|
Definition at line 105 of file awkgram.c. Referenced by system(). |
|
|
Definition at line 102 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 2828 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 212 of file awkgram.c. Referenced by check_funcs(), dump_funcs(), dump_vars(), func_use(), install(), lookup(), pop_var(), release_all_vars(), and shadow_funcs(). |
|
|
Definition at line 139 of file awkgram.c. Referenced by func_call(), interpret(), and yylex(). |
|
|
Definition at line 110 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 109 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 137 of file awkgram.c. Referenced by yylex(). |
|
|
|
|
|
|
|
|
Definition at line 141 of file awkgram.c. Referenced by yylex(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 142 of file awkgram.c. Referenced by yylex(). |
|
|
|
|
|
|
|
|
Definition at line 138 of file awkgram.c. Referenced by yylex(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 113 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 103 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 143 of file awkgram.c. Referenced by yylex(). |
|
|
Value: ((lexptr && lexptr < lexend) ? \ ((int) (unsigned char) *lexptr++) : \ (get_src_buf() ? ((int) (unsigned char) *lexptr++) : EOF) \ ) Definition at line 3297 of file awkgram.c. Referenced by allow_newline(), and yylex(). |
|
|
Definition at line 2826 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 2827 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 3322 of file awkgram.c. Referenced by allow_newline(), and yylex(). |
|
|
Definition at line 104 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 108 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 2829 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 144 of file awkgram.c. Referenced by yylex(). |
|
|
Referenced by get_src_buf(). |
|
|
Referenced by yylex(). |
|
|
Definition at line 3189 of file awkgram.c. Referenced by yylex(). |
|
|
|
|
|
|
|
|
Definition at line 106 of file awkgram.c. Referenced by yylex(). |
|
|
Definition at line 107 of file awkgram.c. Referenced by yylex(). |
|
|
|
|
|
|
|
|
Definition at line 982 of file awkgram.c. Referenced by yyparse(). |
|
|
Definition at line 981 of file awkgram.c. Referenced by yyparse(). |
|
|
Value: do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror ("syntax error: cannot back up");\ YYERROR; \ } \ while (0) |
|
|
|
|
|
|
|
|
Value: do \ { \ register YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (0) |
|
|
|
|
|
|
|
|
Definition at line 1124 of file awkgram.c. Referenced by yyparse(). |
|
|
|
|
|
|
|
|
Definition at line 978 of file awkgram.c. Referenced by yyparse(). |
|
|
Definition at line 979 of file awkgram.c. Referenced by yyparse(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 371 of file awkgram.c. Referenced by yyparse(). |
|
|
Definition at line 1134 of file awkgram.c. Referenced by yyparse(). |
|
|
Definition at line 373 of file awkgram.c. Referenced by yyparse(). |
|
|
Definition at line 1029 of file awkgram.c. Referenced by yyparse(). |
|
|
Value: Current.first_line = Rhs[1].first_line; \ Current.first_column = Rhs[1].first_column; \ Current.last_line = Rhs[N].last_line; \ Current.last_column = Rhs[N].last_column; Definition at line 1017 of file awkgram.c. Referenced by yyparse(). |
|
|
|
|
|
Definition at line 1149 of file awkgram.c. Referenced by yyparse(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 973 of file awkgram.c. Referenced by yyparse(). |
|
|
|
|
|
Definition at line 302 of file awkgram.c. Referenced by yyparse(). |