#include <assert.h>#include <ctype.h>#include <stdio.h>Include dependency graph for defs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | bucket |
| struct | core |
| struct | shifts |
| struct | reductions |
| struct | action |
Defines | |
| #define | MAXCHAR 255 |
| #define | MAXSHORT 32767 |
| #define | MINSHORT -32768 |
| #define | BITS_PER_WORD 32 |
| #define | MAXTABLE 32500 |
| #define | WORDSIZE(n) (((n)+(BITS_PER_WORD-1))/BITS_PER_WORD) |
| #define | BIT(r, n) ((((r)[(n)>>BITS_PER_BPW])>>((n)&(BITS_PER_WORD-1)))&1) |
| #define | SETBIT(r, n) ((r)[(n)>>BITS_PER_BPW]|=((unsigned)1<<((n)&(BITS_PER_WORD-1)))) |
| #define | NUL '\0' |
| #define | NEWLINE '\n' |
| #define | SP ' ' |
| #define | BS '\b' |
| #define | HT '\t' |
| #define | VT '\013' |
| #define | CR '\r' |
| #define | FF '\f' |
| #define | QUOTE '\'' |
| #define | DOUBLE_QUOTE '\"' |
| #define | BACKSLASH '\\' |
| #define | CODE_SUFFIX ".code.c" |
| #define | DEFINES_SUFFIX ".tab.h" |
| #define | OUTPUT_SUFFIX ".tab.c" |
| #define | VERBOSE_SUFFIX ".output" |
| #define | TOKEN 0 |
| #define | LEFT 1 |
| #define | RIGHT 2 |
| #define | NONASSOC 3 |
| #define | MARK 4 |
| #define | TEXT 5 |
| #define | TYPE 6 |
| #define | START 7 |
| #define | UNION 8 |
| #define | IDENT 9 |
| #define | UNKNOWN 0 |
| #define | TERM 1 |
| #define | NONTERM 2 |
| #define | UNDEFINED (-1) |
| #define | SHIFT 1 |
| #define | REDUCE 2 |
| #define | IS_IDENT(c) (isalnum(c) || (c) == '_' || (c) == '.' || (c) == '$') |
| #define | IS_OCTAL(c) ((c) >= '0' && (c) <= '7') |
| #define | NUMERIC_VALUE(c) ((c) - '0') |
| #define | ISTOKEN(s) ((s) < start_symbol) |
| #define | ISVAR(s) ((s) >= start_symbol) |
| #define | CALLOC(k, n) (calloc((unsigned)(k),(unsigned)(n))) |
| #define | FREE(x) (free((char*)(x))) |
| #define | MALLOC(n) (malloc((unsigned)(n))) |
| #define | NEW(t) ((t*)allocate(sizeof(t))) |
| #define | NEW2(n, t) ((t*)allocate((unsigned)((n)*sizeof(t)))) |
| #define | REALLOC(p, n) (realloc((char*)(p),(unsigned)(n))) |
Typedefs | |
| typedef bucket | bucket |
| typedef core | core |
| typedef shifts | shifts |
| typedef reductions | reductions |
| typedef action | action |
Functions | |
| char * | allocate () |
| bucket * | lookup () |
| bucket * | make_bucket () |
| void | free () |
| char * | calloc () |
| char * | malloc () |
| char * | realloc () |
| char * | strcpy () |
Variables | |
| char | dflag |
| char | lflag |
| char | rflag |
| char | tflag |
| char | vflag |
| char * | symbol_prefix |
| char * | myname |
| char * | cptr |
| char * | line |
| int | lineno |
| int | outline |
| char * | banner [] |
| char * | tables [] |
| char * | header [] |
| char * | body [] |
| char * | trailer [] |
| char * | action_file_name |
| char * | code_file_name |
| char * | defines_file_name |
| char * | input_file_name |
| char * | output_file_name |
| char * | text_file_name |
| char * | union_file_name |
| char * | verbose_file_name |
| FILE * | action_file |
| FILE * | code_file |
| FILE * | defines_file |
| FILE * | input_file |
| FILE * | output_file |
| FILE * | text_file |
| FILE * | union_file |
| FILE * | verbose_file |
| int | nitems |
| int | nrules |
| int | nsyms |
| int | ntokens |
| int | nvars |
| int | ntags |
| char | unionized |
| char | line_format [] |
| int | start_symbol |
| char ** | symbol_name |
| short * | symbol_value |
| short * | symbol_prec |
| char * | symbol_assoc |
| short * | ritem |
| short * | rlhs |
| short * | rrhs |
| short * | rprec |
| char * | rassoc |
| short ** | derives |
| char * | nullable |
| bucket * | first_symbol |
| bucket * | last_symbol |
| int | nstates |
| core * | first_state |
| shifts * | first_shift |
| reductions * | first_reduction |
| short * | accessing_symbol |
| core ** | state_table |
| shifts ** | shift_table |
| reductions ** | reduction_table |
| unsigned * | LA |
| short * | LAruleno |
| short * | lookaheads |
| short * | goto_map |
| short * | from_state |
| short * | to_state |
| action ** | parser |
| int | SRtotal |
| int | RRtotal |
| short * | SRconflicts |
| short * | RRconflicts |
| short * | defred |
| short * | rules_used |
| short | nunused |
| short | final_state |
| int | errno |
|
|
Definition at line 52 of file defs.h. Referenced by delimbuild(), dump_line(), and main(). |
|
|
Definition at line 36 of file defs.h. Referenced by add_reductions(). |
|
|
Definition at line 25 of file defs.h. Referenced by pack_table(), reflexive_transitive_closure(), set_first_derives(), and transitive_closure(). |
|
|
Definition at line 45 of file defs.h. Referenced by delimbuild(), ed_fill(), Get_Line(), and i_search(). |
|
|
Definition at line 110 of file defs.h. Referenced by allocate(). |
|
|
Definition at line 57 of file defs.h. Referenced by create_file_names(). |
|
|
Definition at line 48 of file defs.h. Referenced by d_backup(), delimbuild(), e_lblankp(), ed_crins(), ex_gobol(), ex_goeol(), ex_gonl(), ex_gopl(), f_indnl(), i_search(), and starttcap(). |
|
|
Definition at line 58 of file defs.h. Referenced by create_file_names(). |
|
|
|
|
|
Definition at line 49 of file defs.h. Referenced by c_wsp(), close_alot(), delimbuild(), f_whatpage(), pax_options(), test02(), test03(), test04(), test05(), test06(), test09(), and test10(). |
|
|
|
Definition at line 46 of file defs.h. Referenced by docmd(), getfn(), getnum(), getone(), getrhs(), and set(). |
|
|
|
|
|
Definition at line 97 of file defs.h. Referenced by get_name(), get_tag(), and mark_symbol(). |
|
|
Definition at line 98 of file defs.h. Referenced by get_literal(). |
|
|
Definition at line 104 of file defs.h. Referenced by get_shifts(), and set_goto_map(). |
|
|
Definition at line 105 of file defs.h. Referenced by closure(), initialize_F(), print_actions(), print_gotos(), and set_EFF(). |
|
|
Definition at line 66 of file defs.h. Referenced by read_declarations(), and user_interface(). |
|
|
Definition at line 112 of file defs.h. Referenced by create_file_names(), create_symbol_table(), dup_line(), get_line(), initialize_grammar(), initialize_states(), make_bucket(), output_debug(), pack_grammar(), pack_names(), read_declarations(), set_nullable(), unused_rules(), and verbose(). |
|
|
Definition at line 69 of file defs.h. Referenced by advance_to_start(), cmd_delete(), cmd_move(), cut(), delete(), doexcmd(), domark(), filter(), idx2col(), input(), logmsg(), m__ch(), m_scroll(), read_declarations(), v_change(), v_join(), v_overtype(), v_paste(), and vi(). |
|
|
Definition at line 22 of file defs.h. Referenced by d_fgoloff(), d_ncols(), db_prwind(), inindex(), and set_scr(). |
|
|
Definition at line 23 of file defs.h. Referenced by new_state(), and set_goto_map(). |
|
|
Definition at line 34 of file defs.h. Referenced by pack_vector(). |
|
|
|
|
|
Definition at line 113 of file defs.h. Referenced by add_lookback_edge(), argify(), c_complete(), find_word(), FindMatches(), get_shifts(), insert_char(), insert_string(), main(), parsetime(), readline(), rl_complete(), and save_yank(). |
|
|
Definition at line 114 of file defs.h. Referenced by allocate_itemsets(), allocate_storage(), build_relations(), defreds(), digraph(), generate_states(), goto_actions(), initialize_F(), initialize_LA(), make_parser(), output_actions(), pack_table(), remove_conflicts(), set_accessing_symbol(), set_derives(), set_EFF(), set_first_derives(), set_goto_map(), set_reduction_table(), set_shift_table(), set_state_table(), sort_actions(), token_actions(), and transpose(). |
|
|
|
|
|
Definition at line 68 of file defs.h. Referenced by read_declarations(). |
|
|
Definition at line 81 of file defs.h. Referenced by insert_empty_rule(), and start_rule(). |
|
|
Definition at line 42 of file defs.h. Referenced by get_name(), get_tag(), is_reserved(), and matlin(). |
|
|
|
|
|
Definition at line 59 of file defs.h. Referenced by create_file_names(). |
|
|
Definition at line 50 of file defs.h. Referenced by blank(), getc(), glob(), globname(), gmatch(), gravechar(), herein(), qgravechar(), qstrchar(), and unquote(). |
|
|
Definition at line 115 of file defs.h. Referenced by cachec(), expand_items(), expand_rules(), pack_grammar(), and pack_vector(). |
|
|
Definition at line 92 of file defs.h. Referenced by print_conflicts(), print_nulls(), print_reductions(), sole_reduction(), and unused_rules(). |
|
|
Definition at line 67 of file defs.h. Referenced by read_declarations(), and user_interface(). |
|
|
Definition at line 37 of file defs.h. Referenced by initialize_F(), and set_EFF(). |
|
|
Definition at line 91 of file defs.h. Referenced by add_reduce(), backtrace(), display(), dump_stack(), fill(), get_shifts(), make_break(), print_conflicts(), print_shifts(), sole_reduction(), and token_actions(). |
|
|
Definition at line 44 of file defs.h. Referenced by c_wsp(), docmd(), e_gobwsp(), e_gofwsp(), e_lblankp(), ed_dorep(), ed_fill(), ed_indto(), f_kbuffer(), f_listbufs(), fast(), fillsp(), getfn(), getnum(), getone(), getrhs(), inspc(), make_mode(), mk_showin(), sctr(), sel_nbuf(), set(), slow(), t_docleol(), and t_inschr(). |
|
|
Definition at line 72 of file defs.h. Referenced by advance_to_start(), compretval(), do_backward(), do_bscreens(), do_comm(), fatFreeWithDir(), getStart(), give_prompt(), list_file(), read_declarations(), and scrollb(). |
|
|
Definition at line 80 of file defs.h. Referenced by check_symbols(), create_symbol_table(), declare_start(), declare_tokens(), pack_grammar(), pack_symbols(), and start_rule(). |
|
|
Definition at line 70 of file defs.h. Referenced by advance_to_start(), and read_declarations(). |
|
|
|
|
|
Definition at line 71 of file defs.h. Referenced by inflate(), inflate_fast(), inflateBack(), inflateBack9(), inflateSync(), and read_declarations(). |
|
|
Definition at line 86 of file defs.h. Referenced by make_bucket(), mark_symbol(), and start_rule(). |
|
|
Definition at line 73 of file defs.h. Referenced by read_declarations(). |
|
|
Definition at line 79 of file defs.h. Referenced by check_symbols(), and make_bucket(). |
|
|
Definition at line 60 of file defs.h. Referenced by create_file_names(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by create_symbol_table(), insert_empty_rule(), and lookup(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 15 of file lalr.c. Referenced by build_relations(), find_final_state(), get_shifts(), initialize_F(), output_actions(), print_actions(), print_gotos(), set_accessing_symbol(), and set_goto_map(). |
|
|
Definition at line 28 of file main.c. Referenced by copy_action(), done(), open_files(), and output_semantic_actions(). |
|
|
Definition at line 19 of file main.c. Referenced by create_file_names(), done(), open_files(), and output_semantic_actions(). |
|
|
Definition at line 15 of file skeleton.c. Referenced by do_getty(), exec_image(), main(), raw_install(), read_header(), reader(), and show_part(). |
|
|
|
|
|
Definition at line 30 of file main.c. Referenced by open_files(), output_debug(), output_defines(), output_prefix(), output_semantic_actions(), output_stored_text(), output_stype(), output_table(), output_trailing_text(), and write_section(). |
|
|
Definition at line 20 of file main.c. Referenced by create_file_names(), open_files(), output_semantic_actions(), output_stored_text(), and output_trailing_text(). |
|
|
Definition at line 17 of file reader.c. Referenced by add_symbol(), advance_to_start(), copy_action(), copy_ident(), copy_text(), copy_union(), declare_start(), declare_types(), get_line(), get_literal(), get_name(), get_number(), get_tag(), keyword(), mark_symbol(), nextc(), output_trailing_text(), read_declarations(), read_grammar(), and skip_comment(). |
|
|
Definition at line 31 of file main.c. Referenced by open_files(), and output_defines(). |
|
|
Definition at line 21 of file main.c. Referenced by create_file_names(), and open_files(). |
|
|
Definition at line 9 of file mkpar.c. Referenced by defreds(), output_yydefred(), and print_actions(). |
|
|
Definition at line 58 of file main.c. Referenced by build_relations(), free_derives(), initialize_states(), set_derives(), and set_EFF(). |
|
|
Definition at line 5 of file main.c. Referenced by copy(), copy_union(), cpio_options(), create_file_names(), dumpfile(), fn_match(), ftree_sel(), getargs(), main(), open_files(), output_defines(), pat_sel(), pax_options(), and show(). |
|
|
|
|
|
Definition at line 12 of file mkpar.c. Referenced by find_final_state(), output_debug(), and print_actions(). |
|
|
Definition at line 11 of file lr0.c. Referenced by free_reductions(), and set_reduction_table(). |
|
|
Definition at line 10 of file lr0.c. Referenced by free_shifts(), save_shifts(), set_goto_map(), set_shift_table(), and show_shifts(). |
|
|
Definition at line 9 of file lr0.c. Referenced by free_itemsets(), initialize_states(), set_accessing_symbol(), set_state_table(), and show_cores(). |
|
|
Definition at line 11 of file symtab.c. Referenced by check_symbols(), create_symbol_table(), free_symbols(), pack_names(), and pack_symbols(). |
|
|
Definition at line 20 of file lalr.c. Referenced by build_relations(), map_goto(), and output_actions(). |
|
|
Definition at line 19 of file lalr.c. Referenced by default_goto(), map_goto(), output_actions(), save_column(), and set_goto_map(). |
|
|
Definition at line 49 of file skeleton.c. Referenced by add_file(), adjust_boundary(), checkmark(), checksum(), clear_header(), deflate(), do_chown(), dp_recv(), DPC(), extract(), find_y(), get_header(), gnu_load(), GOTO(), HO(), initialize(), LF(), load_file(), main(), make_header(), move_previous_word(), nm(), ns_recv(), out_header(), output(), proceed(), read_header(), reverse_scroll(), strings(), strip(), SU(), syminit(), tarfile(), timestamp(), udp_conf(), unzRepair(), write_header(), and WT(). |
|
|
Definition at line 32 of file main.c. Referenced by get_line(), getargs(), main(), open_files(), and output_trailing_text(). |
|
|
|
Definition at line 14 of file lalr.c. Referenced by add_reductions(), compute_lookaheads(), and output_actions(). |
|
|
Definition at line 13 of file lalr.c. Referenced by add_lookback_edge(), add_reductions(), and output_actions(). |
|
|
Definition at line 12 of file symtab.c. Referenced by create_symbol_table(), insert_empty_rule(), and lookup(). |
|
|
Definition at line 6 of file main.c. Referenced by copy(), copy_action(), copy_text(), copy_union(), copylink(), cpio_options(), getargs(), main(), output_semantic_actions(), output_stored_text(), output_trailing_text(), and pax_options(). |
|
|
|
|
|
Definition at line 34 of file reader.c. Referenced by copy_action(), copy_text(), copy_union(), output_semantic_actions(), output_stored_text(), and output_trailing_text(). |
|
|
|
|
|
Definition at line 12 of file lalr.c. Referenced by add_lookback_edge(), add_reductions(), compute_lookaheads(), initialize_LA(), and output_actions(). |
|
|
|
Definition at line 41 of file main.c. Referenced by add_symbol(), allocate_itemsets(), allocate_storage(), copy_action(), end_rule(), fts_build(), fts_open(), generate_states(), get_state(), initialize_grammar(), insert_empty_rule(), pack_grammar(), set_maxrhs(), set_nullable(), and show_ritems(). |
|
|
Definition at line 42 of file main.c. Referenced by allocate_storage(), closure(), copy_action(), end_rule(), finalize_closure(), generate_states(), initialize_grammar(), insert_empty_rule(), log_unused(), mark_symbol(), output_rule_data(), pack_grammar(), print_grammar(), read_grammar(), set_derives(), set_first_derives(), show_rrhs(), start_rule(), unused_rules(), and verbose(). |
|
|
Definition at line 8 of file lr0.c. Referenced by compute_lookaheads(), default_goto(), defreds(), free_parser(), goto_actions(), initialize_LA(), initialize_states(), log_conflicts(), make_parser(), matching_vector(), new_state(), output_actions(), output_base(), output_yydefred(), remove_conflicts(), set_accessing_symbol(), set_reduction_table(), set_shift_table(), set_state_table(), token_actions(), unused_rules(), and verbose(). |
|
|
Definition at line 43 of file main.c. Referenced by allocate_itemsets(), allocate_storage(), goto_actions(), new_itemsets(), pack_symbols(), set_derives(), set_EFF(), and set_first_derives(). |
|
|
Definition at line 13 of file reader.c. Referenced by free_tags(), get_tag(), and output_stype(). |
|
|
Definition at line 44 of file main.c. Referenced by add_reductions(), finalize_closure(), lalr(), output_actions(), output_debug(), output_defines(), pack_symbols(), set_first_derives(), set_goto_map(), token_actions(), and verbose(). |
|
|
Definition at line 59 of file main.c. Referenced by free_nullable(), and set_nullable(). |
|
|
Definition at line 11 of file mkpar.c. Referenced by verbose(). |
|
|
Definition at line 45 of file main.c. Referenced by output_actions(), set_derives(), set_EFF(), set_first_derives(), set_goto_map(), and verbose(). |
|
|
Definition at line 17 of file main.c. Referenced by copy_ident(), goto_actions(), output(), output_base(), output_check(), output_debug(), output_prefix(), output_rule_data(), output_semantic_actions(), output_stored_text(), output_stype(), output_table(), output_trailing_text(), output_yydefred(), and write_section(). |
|
|
Definition at line 33 of file main.c. Referenced by copy_ident(), goto_actions(), main(), open_files(), open_outfile(), output_base(), output_check(), output_debug(), output_rule_data(), output_table(), and output_yydefred(). |
|
|
Definition at line 23 of file main.c. Referenced by create_file_names(), and open_files(). |
|
|
Definition at line 4 of file mkpar.c. Referenced by free_parser(), make_parser(), print_actions(), print_conflicts(), print_nulls(), remove_conflicts(), sole_reduction(), token_actions(), and unused_rules(). |
|
|
Definition at line 57 of file main.c. Referenced by expand_rules(), initialize_grammar(), insert_empty_rule(), mark_symbol(), pack_grammar(), and start_rule(). |
|
|
Definition at line 18 of file lalr.c. Referenced by free_reductions(), initialize_LA(), and set_reduction_table(). |
|
|
Definition at line 7 of file main.c. Referenced by copy(), copy1(), copydir(), create_file_names(), decode_result(), do1(), do_change(), do_chown(), done(), getargs(), goto_actions(), link1(), main(), open_files(), output(), output_base(), output_check(), output_debug(), output_rule_data(), output_table(), output_yydefred(), process(), and zcopy(). |
|
|
Definition at line 53 of file main.c. Referenced by allocate_itemsets(), build_relations(), closure(), find_final_state(), log_unused(), new_itemsets(), pack_grammar(), print_core(), save_reductions(), set_EFF(), set_maxrhs(), set_nullable(), show_cores(), and show_ritems(). |
|
|
Definition at line 54 of file main.c. Referenced by log_unused(), pack_grammar(), print_core(), print_grammar(), set_derives(), and show_cores(). |
|
|
Definition at line 56 of file main.c. Referenced by expand_rules(), initialize_grammar(), insert_empty_rule(), mark_symbol(), pack_grammar(), and start_rule(). |
|
|
Definition at line 8 of file mkpar.c. Referenced by log_conflicts(), print_state(), and remove_conflicts(). |
|
|
Definition at line 55 of file main.c. Referenced by build_relations(), initialize_states(), log_unused(), pack_grammar(), print_core(), print_nulls(), set_EFF(), show_cores(), and show_rrhs(). |
|
|
Definition at line 6 of file mkpar.c. Referenced by make_parser(), remove_conflicts(), total_conflicts(), and verbose(). |
|
|
Definition at line 10 of file mkpar.c. Referenced by log_unused(), and unused_rules(). |
|
|
Definition at line 17 of file lalr.c. Referenced by build_relations(), find_final_state(), free_shifts(), get_shifts(), initialize_F(), print_actions(), print_gotos(), and set_shift_table(). |
|
|
Definition at line 7 of file mkpar.c. Referenced by log_conflicts(), print_state(), and remove_conflicts(). |
|
|
Definition at line 5 of file mkpar.c. Referenced by make_parser(), remove_conflicts(), total_conflicts(), and verbose(). |
|
|
Definition at line 47 of file main.c. Referenced by free_derives(), goto_actions(), initialize_states(), output_rule_data(), pack_grammar(), set_derives(), set_EFF(), and set_first_derives(). |
|
|
Definition at line 16 of file lalr.c. Referenced by free_itemsets(), print_core(), and set_state_table(). |
|
|
Definition at line 51 of file main.c. Referenced by get_shifts(). |
|
|
Definition at line 48 of file main.c. Referenced by log_unused(), output_debug(), output_defines(), print_core(), print_gotos(), print_grammar(), and show_cores(). |
|
|
Definition at line 50 of file main.c. Referenced by get_shifts(). |
|
|
Definition at line 11 of file main.c. Referenced by getargs(), goto_actions(), output_base(), output_check(), output_debug(), output_prefix(), output_rule_data(), output_table(), and output_yydefred(). |
|
|
Definition at line 49 of file main.c. Referenced by output_debug(), and output_rule_data(). |
|
|
Definition at line 30 of file skeleton.c. Referenced by output(). |
|
|
Definition at line 34 of file main.c. Referenced by copy_text(), copy_union(), done(), open_files(), and output_stored_text(). |
|
|
Definition at line 24 of file main.c. Referenced by create_file_names(), done(), open_files(), and output_stored_text(). |
|
|
Definition at line 8 of file main.c. Referenced by copy(), copydir(), cpio_options(), ftree_chk(), ftree_start(), getargs(), main(), output_debug(), pax_options(), rdfile_close(), run(), sig_cleanup(), and wr_archive(). |
|
|
Definition at line 21 of file lalr.c. Referenced by build_relations(), default_goto(), find_final_state(), get_shifts(), initialize_F(), output_actions(), print_gotos(), and save_column(). |
|
|
Definition at line 225 of file skeleton.c. Referenced by output(). |
|
|
Definition at line 36 of file main.c. Referenced by copy_union(), done(), and open_files(). |
|
|
Definition at line 25 of file main.c. Referenced by create_file_names(), done(), and open_files(). |
|
|
Definition at line 16 of file reader.c. Referenced by copy_union(), and output_stype(). |
|
|
Definition at line 39 of file main.c. Referenced by log_conflicts(), log_unused(), open_files(), print_actions(), print_core(), print_gotos(), print_grammar(), print_state(), and verbose(). |
|
|
Definition at line 26 of file main.c. Referenced by create_file_names(), and open_files(). |
|
|
|
1.4.6