⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lex..c

📁 CFront1.0的源代码,第一代C++编译器的思想...
💻 C
📖 第 1 页 / 共 5 页
字号:
int _enumdef_print ( ) ; int _enumdef_dcl_print ( ) ; int _enumdef_dcl ( ) ; int _enumdef_simpl ( ) ; #line 249 "../../src/cfront.h"struct classdef { /* sizeof = 76 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; bit _type_defined ; Pname _classdef_clbase ; bit _classdef_pubbase ; bit _classdef_c_body ; TOK _classdef_csu ; char * _classdef_string ; Pname _classdef_privmem ; Pname _classdef_pubmem ; Ptable _classdef_memtbl ; short _classdef_obj_size ; short _classdef_real_size ; char _classdef_obj_align ; char _classdef_bit_ass ; Plist _classdef_friend_list ; Pname _classdef_pubdef ; Plist _classdef_tn_list ; Pclass _classdef_in_class ; Ptype _classdef_this_type ; char _classdef_virt_count ; Pname * _classdef_virt_init ; Pname _classdef_itor ; Pname _classdef_conv ; } ; struct classdef * _classdef__ctor ( ) ; int _classdef_print ( ) ; int _classdef_dcl_print ( ) ; int _classdef_simpl ( ) ; int _classdef_print_members ( ) ; int _classdef_dcl ( ) ; bit _classdef_has_friend ( ) ; Pname _classdef_has_oper ( ) ; Pname _classdef_has_ictor ( ) ; #line 304 "../../src/cfront.h"union _C1 { /* sizeof = 4 */Pname __C1_b_xname ; Ptype __C1_b_fieldtype ; } ; struct basetype { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; bit _type_defined ; bit _basetype_b_unsigned ; bit _basetype_b_const ; bit _basetype_b_typedef ; bit _basetype_b_inline ; bit _basetype_b_virtual ; bit _basetype_b_short ; bit _basetype_b_long ; char _basetype_b_offset ; TOK _basetype_b_sto ; Pname _basetype_b_name ; Pexpr _basetype_b_field ; char _basetype_b_bits ; Ptable _basetype_b_table ; union _C1 _basetype__O1 ; } ; struct basetype * _basetype__ctor ( ) ; Pbase _basetype_type_adj ( ) ; Pbase _basetype_base_adj ( ) ; Pbase _basetype_name_adj ( ) ; Pbase _basetype_check ( ) ; Pname _basetype_aggr ( ) ; int _basetype_normalize ( ) ; int _basetype_dcl_print ( ) ; Pbase _basetype_arit_conv ( ) ; #line 340 "../../src/cfront.h"struct fct { /* sizeof = 52 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; bit _type_defined ; Ptype _fct_returns ; Pname _fct_argtype ; Ptype _fct_s_returns ; Pname _fct_f_this ; Pblock _fct_body ; Pname _fct_f_init ; Pexpr _fct_b_init ; short _fct_frame_size ; TOK _fct_nargs ; TOK _fct_nargs_known ; char _fct_f_virtual ; char _fct_f_inline ; Pexpr _fct_f_expr ; Pexpr _fct_last_expanded ; } ; struct fct * _fct__ctor ( ) ; int _fct_argdcl ( ) ; Ptype _fct_normalize ( ) ; int _fct_dcl_print ( ) ; int _fct_dcl ( ) ; Pexpr _fct_base_init ( ) ; Pexpr _fct_mem_init ( ) ; int _fct_simpl ( ) ; Pexpr _fct_expand ( ) ; #line 374 "../../src/cfront.h"struct name_list { /* sizeof = 8 */Pname _name_list_f ; Plist _name_list_l ; } ; #line 381 "../../src/cfront.h"struct gen { /* sizeof = 16 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; bit _type_defined ; Plist _gen_fct_list ; char * _gen_string ; } ; struct gen * _gen__ctor ( ) ; Pname _gen_add ( ) ; Pname _gen_find ( ) ; #line 391 "../../src/cfront.h"struct vec { /* sizeof = 20 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; bit _type_defined ; Ptype _vec_typ ; Pexpr _vec_dim ; int _vec_size ; } ; Ptype _vec_normalize ( ) ; int _vec_print ( ) ; #line 403 "../../src/cfront.h"struct ptr { /* sizeof = 16 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; bit _type_defined ; Ptype _ptr_typ ; bit _ptr_rdo ; } ; Ptype _ptr_normalize ( ) ; #line 411 "../../src/cfront.h"; #line 423 "../../src/cfront.h"extern Pexpr next_elem ( ) ; #line 424 "../../src/cfront.h"extern int new_list ( ) ; #line 425 "../../src/cfront.h"extern int list_check ( ) ; #line 426 "../../src/cfront.h"extern Pexpr ref_init ( ) ; #line 427 "../../src/cfront.h"extern Pexpr class_init ( ) ; #line 428 "../../src/cfront.h"extern Pexpr check_cond ( ) ; #line 440 "../../src/cfront.h"union _C2 { /* sizeof = 4 */Ptype __C2_tp ; int __C2_syn_class ; } ; union _C3 { /* sizeof = 4 */Pexpr __C3_e1 ; char * __C3_string ; } ; union _C4 { /* sizeof = 4 */Pexpr __C4_e2 ; Pexpr __C4_n_initializer ; char * __C4_string2 ; } ; union _C5 { /* sizeof = 4 */Ptype __C5_tp2 ; Pname __C5_fct_name ; Pexpr __C5_cond ; Pname __C5_mem ; Ptype __C5_as_type ; Ptable __C5_n_table ; Pin __C5_il ; } ; struct expr { /* sizeof = 24 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; union _C2 _expr__O2 ; union _C3 _expr__O3 ; union _C4 _expr__O4 ; union _C5 _expr__O5 ; } ; struct expr * _expr__ctor ( ) ; int _expr__dtor ( ) ; int _expr_del ( ) ; int _expr_print ( ) ; Pexpr _expr_typ ( ) ; int _expr_eval ( ) ; int _expr_lval ( ) ; Ptype _expr_fct_call ( ) ; Pexpr _expr_address ( ) ; Pexpr _expr_contents ( ) ; int _expr_simpl ( ) ; Pexpr _expr_expand ( ) ; bit _expr_not_simple ( ) ; #line 481 "../../src/cfront.h"extern char * Neval ; #line 483 "../../src/cfront.h"struct typed_obj { /* sizeof = 24 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; union _C2 _expr__O2 ; union _C3 _expr__O3 ; union _C4 _expr__O4 ; union _C5 _expr__O5 ; } ; #line 488 "../../src/cfront.h"struct texpr { /* sizeof = 24 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; union _C2 _expr__O2 ; union _C3 _expr__O3 ; union _C4 _expr__O4 ; union _C5 _expr__O5 ; } ; #line 493 "../../src/cfront.h"struct call { /* sizeof = 24 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; union _C2 _expr__O2 ; union _C3 _expr__O3 ; union _C4 _expr__O4 ; union _C5 _expr__O5 ; } ; int _call_simpl ( ) ; Pexpr _call_expand ( ) ; #line 502 "../../src/cfront.h"struct qexpr { /* sizeof = 24 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; union _C2 _expr__O2 ; union _C3 _expr__O3 ; union _C4 _expr__O4 ; union _C5 _expr__O5 ; } ; #line 508 "../../src/cfront.h"struct ref { /* sizeof = 24 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; union _C2 _expr__O2 ; union _C3 _expr__O3 ; union _C4 _expr__O4 ; union _C5 _expr__O5 ; } ; #line 514 "../../src/cfront.h"struct text_expr { /* sizeof = 24 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; union _C2 _expr__O2 ; union _C3 _expr__O3 ; union _C4 _expr__O4 ; union _C5 _expr__O5 ; } ; #line 520 "../../src/cfront.h"union _C6 { /* sizeof = 4 */Pname __C6_n_qualifier ; Ptable __C6_n_realscope ; } ; struct name { /* sizeof = 68 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; union _C2 _expr__O2 ; union _C3 _expr__O3 ; union _C4 _expr__O4 ; union _C5 _expr__O5 ; int _name_n_val ; TOK _name_n_oper ; TOK _name_n_sto ; TOK _name_n_stclass ; TOK _name_n_scope ; short _name_n_offset ; Pname _name_n_list ; Pname _name_n_tbl_list ; short _name_n_used ; short _name_n_addr_taken ; short _name_n_assigned_to ; char _name_n_union ; bit _name_n_evaluated ; short _name_lex_level ; Loc _name_where ; union _C6 _name__O6 ; } ; struct name * _name__ctor ( ) ; int _name__dtor ( ) ; int _name_del ( ) ; int _name_print ( ) ; int _name_dcl_print ( ) ; Pname _name_normalize ( ) ; Pname _name_tdef ( ) ; Pname _name_tname ( ) ; Pname _name_dcl ( ) ; int _name_no_of_names ( ) ; int _name_hide ( ) ; int _name_assign ( ) ; int _name_check_oper ( ) ; int _name_simpl ( ) ; #line 573 "../../src/cfront.h"union _C7 { /* sizeof = 4 */Pname __C7_d ; Pexpr __C7_e2 ; Pstmt __C7_has_default ; int __C7_case_value ; } ; union _C8 { /* sizeof = 4 */Pexpr __C8_e ; bit __C8_own_tbl ; Pstmt __C8_s2 ; } ; union _C9 { /* sizeof = 4 */Pstmt __C9_for_init ; Pstmt __C9_else_stmt ; Pstmt __C9_case_list ; bit __C9_empty ; } ; struct stmt { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; Pstmt _stmt_s ; Pstmt _stmt_s_list ; Loc _stmt_where ; union _C7 _stmt__O7 ; union _C8 _stmt__O8 ; Ptable _stmt_memtbl ; union _C9 _stmt__O9 ; } ; struct stmt * _stmt__ctor ( ) ; int _stmt__dtor ( ) ; int _stmt_del ( ) ; int _stmt_print ( ) ; int _stmt_dcl ( ) ; int _stmt_reached ( ) ; Pstmt _stmt_simpl ( ) ; Pstmt _stmt_expand ( ) ; Pstmt _stmt_copy ( ) ; #line 610 "../../src/cfront.h"extern Pname dcl_temp ( ) ; #line 611 "../../src/cfront.h"extern char * temp ( ) ; #line 612 "../../src/cfront.h"extern Ptable scope ; #line 613 "../../src/cfront.h"extern Ptable expand_tbl ; #line 614 "../../src/cfront.h"extern Pname expand_fn ; #line 623 "../../src/cfront.h"struct estmt { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; Pstmt _stmt_s ; Pstmt _stmt_s_list ; Loc _stmt_where ; union _C7 _stmt__O7 ; union _C8 _stmt__O8 ; Ptable _stmt_memtbl ; union _C9 _stmt__O9 ; } ; #line 630 "../../src/cfront.h"struct ifstmt { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; Pstmt _stmt_s ; Pstmt _stmt_s_list ; Loc _stmt_where ; union _C7 _stmt__O7 ; union _C8 _stmt__O8 ; Ptable _stmt_memtbl ; union _C9 _stmt__O9 ; } ; #line 640 "../../src/cfront.h"struct lstmt { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; Pstmt _stmt_s ; Pstmt _stmt_s_list ; Loc _stmt_where ; union _C7 _stmt__O7 ; union _C8 _stmt__O8 ; Ptable _stmt_memtbl ; union _C9 _stmt__O9 ; } ; #line 645 "../../src/cfront.h"struct forstmt { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; Pstmt _stmt_s ; Pstmt _stmt_s_list ; Loc _stmt_where ; union _C7 _stmt__O7 ; union _C8 _stmt__O8 ; Ptable _stmt_memtbl ; union _C9 _stmt__O9 ; } ; #line 652 "../../src/cfront.h"struct block { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; Pstmt _stmt_s ; Pstmt _stmt_s_list ; Loc _stmt_where ; union _C7 _stmt__O7 ; union _C8 _stmt__O8 ; Ptable _stmt_memtbl ; union _C9 _stmt__O9 ; } ; int _block_dcl ( ) ; Pstmt _block_simpl ( ) ; #line 659 "../../src/cfront.h"struct pair { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; Pstmt _stmt_s ; Pstmt _stmt_s_list ; Loc _stmt_where ; union _C7 _stmt__O7 ; union _C8 _stmt__O8 ; Ptable _stmt_memtbl ; union _C9 _stmt__O9 ; } ; #line 663 "../../src/cfront.h"struct nlist { /* sizeof = 8 */Pname _nlist_head ; Pname _nlist_tail ; } ; struct nlist * _nlist__ctor ( ) ; int _nlist_add_list ( ) ; #line 672 "../../src/cfront.h"extern Pname name_unlist ( ) ; #line 674 "../../src/cfront.h"struct slist { /* sizeof = 8 */Pstmt _slist_head ; Pstmt _slist_tail ; } ; #line 682 "../../src/cfront.h"extern Pstmt stmt_unlist ( ) ; #line 684 "../../src/cfront.h"struct elist { /* sizeof = 8 */Pexpr _elist_head ; Pexpr _elist_tail ; } ; #line 692 "../../src/cfront.h"extern Pexpr expr_unlist ( ) ; #line 694 "../../src/cfront.h"extern struct dcl_context * cc ; #line 696 "../../src/cfront.h"struct dcl_context { /* sizeof = 24 */Pname _dcl_context_c_this ; Ptype _dcl_context_tot ; Pname _dcl_context_not ; Pclass _dcl_context_cot ; Ptable _dcl_context_ftbl ; Pname _dcl_context_nof ; } ; #line 710 "../../src/cfront.h"extern struct dcl_context ccvec [ 20] ; #line 712 "../../src/cfront.h"extern bit can_coerce ( ) ; #line 713 "../../src/cfront.h"extern int yyerror ( ) ; #line 714 "../../src/cfront.h"extern TOK back ; #line 717 "../../src/cfront.h"extern int Nspy ; #line 718 "../../src/cfront.h"extern int Nfile ; #line 718 "../../src/cfront.h"extern int Nline ; #line 718 "../../src/cfront.h"extern int Ntoken ; #line 718 "../../src/cfront.h"extern int Nname ; #line 718 "../../src/cfront.h"extern int Nfree_store ; #line 718 "../../src/cfront.h"extern int Nalloc ; #line 718 "../../src/cfront.h"extern int Nfree ; #line 719 "../../src/cfront.h"extern int NFn ; #line 719 "../../src/cfront.h"extern int NFtn ; #line 719 "../../src/cfront.h"extern int NFpv ; #line 719 "../../src/cfront.h"extern int NFbt ; #line 719 "../../src/cfront.h"extern int NFf ; #line 719 "../../src/cfront.h"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -