📄 lex..c
字号:
#line 1 "../../src/lex.c"/* <<cfront 10/10/85>> *//* < ../../src/lex.c */int * _new ( ) ; int _delete ( ) ; int * _vec_new ( ) ; int _vec_delete ( ) ; #line 1 "../../src/lex.c"typedef char * va_list ; #line 12 "../../incl/stdio.h"struct _iobuf { /* sizeof = 16 */int __iobuf__cnt ; char * __iobuf__ptr ; char * __iobuf__base ; char __iobuf__flag ; char __iobuf__file ; } ; #line 20 "../../incl/stdio.h"extern struct _iobuf _iob [ 20] ; #line 36 "../../incl/stdio.h"extern int _flsbuf ( ) ; #line 37 "../../incl/stdio.h"extern int _filbuf ( ) ; #line 50 "../../incl/stdio.h"extern struct _iobuf * fopen ( ) ; #line 51 "../../incl/stdio.h"extern struct _iobuf * fdopen ( ) ; #line 52 "../../incl/stdio.h"extern struct _iobuf * freopen ( ) ; #line 53 "../../incl/stdio.h"extern long ftell ( ) ; #line 54 "../../incl/stdio.h"extern char * fgets ( ) ; #line 61 "../../incl/stdio.h"extern char * gets ( ) ; #line 62 "../../incl/stdio.h"extern int puts ( ) ; #line 63 "../../incl/stdio.h"extern int fputs ( ) ; #line 64 "../../incl/stdio.h"extern int printf ( ) ; #line 65 "../../incl/stdio.h"extern int fprintf ( ) ; #line 66 "../../incl/stdio.h"extern int sprintf ( ) ; #line 67 "../../incl/stdio.h"extern int scanf ( ) ; #line 68 "../../incl/stdio.h"extern int fscanf ( ) ; #line 69 "../../incl/stdio.h"extern int sscanf ( ) ; #line 70 "../../incl/stdio.h"extern int fread ( ) ; #line 71 "../../incl/stdio.h"extern int fwrite ( ) ; #line 72 "../../incl/stdio.h"extern int fclose ( ) ; #line 73 "../../incl/stdio.h"extern int fflush ( ) ; #line 74 "../../incl/stdio.h"extern int clearerr ( ) ; #line 75 "../../incl/stdio.h"extern int fseek ( ) ; #line 76 "../../incl/stdio.h"extern int rewind ( ) ; #line 77 "../../incl/stdio.h"extern int getw ( ) ; #line 78 "../../incl/stdio.h"extern int fgetc ( ) ; #line 79 "../../incl/stdio.h"extern struct _iobuf * popen ( ) ; #line 80 "../../incl/stdio.h"extern int pclose ( ) ; #line 81 "../../incl/stdio.h"extern int putw ( ) ; #line 82 "../../incl/stdio.h"extern int fputc ( ) ; #line 83 "../../incl/stdio.h"extern int setbuf ( ) ; #line 84 "../../incl/stdio.h"extern int ungetc ( ) ; #line 86 "../../incl/stdio.h"extern int exit ( ) ; #line 87 "../../incl/stdio.h"extern int abort ( ) ; #line 89 "../../incl/stdio.h"extern int atoi ( ) ; #line 90 "../../incl/stdio.h"extern double atof ( ) ; #line 91 "../../incl/stdio.h"extern long atol ( ) ; #line 96 "../../incl/stdio.h"extern struct _iobuf * tmpfile ( ) ; #line 97 "../../incl/stdio.h"extern char * ctermid ( ) ; #line 98 "../../incl/stdio.h"extern char * cuserid ( ) ; #line 99 "../../incl/stdio.h"extern char * tempnam ( ) ; #line 100 "../../incl/stdio.h"extern char * tmpnam ( ) ; #line 101 "../../incl/stdio.h"extern int vprintf ( ) ; #line 102 "../../incl/stdio.h"extern int vfprintf ( ) ; #line 103 "../../incl/stdio.h"extern int vsprintf ( ) ; #line 104 "../../incl/stdio.h"extern int setvbuf ( ) ; #line 106 "../../incl/stdio.h"extern int perror ( ) ; #line 108 "../../incl/stdio.h"extern int errno ; #line 109 "../../incl/stdio.h"extern char * sys_errlist [ ] ; #line 110 "../../incl/stdio.h"extern int sys_nerr ; #line 111 "../../incl/stdio.h"extern unsigned char * _bufendtab [ ] ; #line 6 "../../src/token.h"extern int lex_clear ( ) ; #line 7 "../../src/token.h"extern int ktbl_init ( ) ; #line 8 "../../src/token.h"extern int otbl_init ( ) ; #line 19 "../../src/token.h"extern char * keys [ 256] ; typedef short TOK ; typedef struct node * PP ; typedef char bit ; typedef int ( * PFI ) ( ) ; typedef int ( * PFV ) ( ) ; typedef struct node * Pnode ; typedef struct key * Pkey ; typedef struct name * Pname ; typedef struct basetype * Pbase ; typedef struct type * Ptype ; typedef struct fct * Pfct ; typedef struct field * Pfield ; typedef struct expr * Pexpr ; typedef struct qexpr * Pqexpr ; typedef struct texpr * Ptexpr ; typedef struct classdef * Pclass ; typedef struct enumdef * Penum ; typedef struct stmt * Pstmt ; typedef struct estmt * Pestmt ; typedef struct tstmt * Ptstmt ; typedef struct vec * Pvec ; typedef struct ptr * Pptr ; typedef struct block * Pblock ; typedef struct table * Ptable ; typedef struct loc Loc ; typedef struct call * Pcall ; typedef struct gen * Pgen ; typedef struct ref * Pref ; typedef struct name_list * Plist ; typedef struct iline * Pin ; #line 31 "../../src/cfront.h"extern char * prog_name ; #line 32 "../../src/cfront.h"extern bit old_fct_accepted ; #line 36 "../../src/cfront.h"extern bit fct_void ; #line 44 "../../src/cfront.h"extern int inline_restr ; #line 46 "../../src/cfront.h"extern Pname name_free ; #line 47 "../../src/cfront.h"extern Pexpr expr_free ; #line 48 "../../src/cfront.h"extern Pstmt stmt_free ; #line 50 "../../src/cfront.h"extern int Nspy ; #line 50 "../../src/cfront.h"extern int Nn ; #line 50 "../../src/cfront.h"extern int Nbt ; #line 50 "../../src/cfront.h"extern int Nt ; #line 50 "../../src/cfront.h"extern int Ne ; #line 50 "../../src/cfront.h"extern int Ns ; #line 50 "../../src/cfront.h"extern int Nstr ; #line 50 "../../src/cfront.h"extern int Nc ; #line 50 "../../src/cfront.h"extern int Nl ; #line 52 "../../src/cfront.h"extern TOK lex ( ) ; #line 53 "../../src/cfront.h"extern Pname syn ( ) ; #line 54 "../../src/cfront.h"extern bit print_mode ; #line 57 "../../src/cfront.h"extern int init_print ( ) ; #line 58 "../../src/cfront.h"extern int init_lex ( ) ; #line 59 "../../src/cfront.h"extern int int_syn ( ) ; #line 60 "../../src/cfront.h"extern int ext ( ) ; #line 62 "../../src/cfront.h"extern char * make_name ( ) ; #line 67 "../../src/cfront.h"struct loc { /* sizeof = 4 */short _loc_file ; short _loc_line ; } ; int _loc_put ( ) ; int _loc_putline ( ) ; #line 76 "../../src/cfront.h"extern Loc curloc ; #line 77 "../../src/cfront.h"extern int curr_file ; #line 80 "../../src/cfront.h"extern int error ( ) ; #line 81 "../../src/cfront.h"extern int errorFI_PC__E ( ) ; #line 82 "../../src/cfront.h"extern int errorFPCloc__PC__E ( ) ; #line 83 "../../src/cfront.h"extern int errorFPC__E ( ) ; #line 84 "../../src/cfront.h"extern int error_count ; #line 85 "../../src/cfront.h"extern bit debug ; #line 86 "../../src/cfront.h"extern Ptype outlined ; #line 88 "../../src/cfront.h"extern struct _iobuf * in_file ; #line 89 "../../src/cfront.h"extern struct _iobuf * out_file ; #line 90 "../../src/cfront.h"extern char scan_started ; #line 91 "../../src/cfront.h"extern bit warn ; #line 92 "../../src/cfront.h"extern int br_level ; #line 93 "../../src/cfront.h"extern int bl_level ; #line 94 "../../src/cfront.h"extern Ptable ktbl ; #line 95 "../../src/cfront.h"extern char * oper_name ( ) ; #line 96 "../../src/cfront.h"extern Ptable gtbl ; #line 97 "../../src/cfront.h"extern Pclass ccl ; #line 98 "../../src/cfront.h"extern Pbase defa_type ; #line 99 "../../src/cfront.h"extern Pbase moe_type ; #line 101 "../../src/cfront.h"extern Pstmt Cstmt ; #line 102 "../../src/cfront.h"extern Pname Cdcl ; #line 103 "../../src/cfront.h"extern int put_dcl_context ( ) ; #line 105 "../../src/cfront.h"extern Ptable any_tbl ; #line 106 "../../src/cfront.h"extern Pbase any_type ; #line 107 "../../src/cfront.h"extern Pbase int_type ; #line 108 "../../src/cfront.h"extern Pbase char_type ; #line 109 "../../src/cfront.h"extern Pbase short_type ; #line 110 "../../src/cfront.h"extern Pbase long_type ; #line 111 "../../src/cfront.h"extern Pbase uchar_type ; #line 112 "../../src/cfront.h"extern Pbase ushort_type ; #line 113 "../../src/cfront.h"extern Pbase uint_type ; #line 114 "../../src/cfront.h"extern Pbase ulong_type ; #line 115 "../../src/cfront.h"extern Ptype Pchar_type ; #line 116 "../../src/cfront.h"extern Ptype Pint_type ; #line 117 "../../src/cfront.h"extern Ptype Pfctvec_type ; #line 118 "../../src/cfront.h"extern Pbase float_type ; #line 119 "../../src/cfront.h"extern Pbase double_type ; #line 120 "../../src/cfront.h"extern Pbase void_type ; #line 121 "../../src/cfront.h"extern Ptype Pvoid_type ; #line 122 "../../src/cfront.h"extern Pbase zero_type ; #line 124 "../../src/cfront.h"extern int byte_offset ; #line 125 "../../src/cfront.h"extern int bit_offset ; #line 126 "../../src/cfront.h"extern int max_align ; #line 127 "../../src/cfront.h"extern int stack_size ; #line 128 "../../src/cfront.h"extern int enum_count ; #line 129 "../../src/cfront.h"extern int const_save ; #line 131 "../../src/cfront.h"extern Pname class_name ( ) ; #line 132 "../../src/cfront.h"extern Pname gen_find ( ) ; #line 133 "../../src/cfront.h"extern char * gen_name ( ) ; #line 135 "../../src/cfront.h"extern Pexpr dummy ; #line 136 "../../src/cfront.h"extern Pexpr zero ; #line 137 "../../src/cfront.h"extern Pexpr one ; #line 138 "../../src/cfront.h"extern Pname sta_name ; #line 144 "../../src/cfront.h"struct node { /* sizeof = 8 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; } ; #line 150 "../../src/cfront.h"extern Pclass Ebase ; #line 150 "../../src/cfront.h"extern Pclass Epriv ; #line 152 "../../src/cfront.h"struct table { /* sizeof = 36 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; short _table_size ; short _table_hashsize ; Pname * _table_entries ; short * _table_hashtbl ; short _table_free_slot ; short _table_init_stat ; Pstmt _table_real_block ; Ptable _table_next ; Pname _table_t_name ; } ; struct table * _table__ctor ( ) ; Pname _table_look ( ) ; Pname _table_insert ( ) ; int _table_grow ( ) ; Pname _table_get_mem ( ) ; int _table_dcl_print ( ) ; Pname _table_lookc ( ) ; Pexpr _table_find_name ( ) ; int _table_del ( ) ; #line 184 "../../src/cfront.h"extern bit Nold ; #line 185 "../../src/cfront.h"extern bit vec_const ; #line 186 "../../src/cfront.h"extern int restore ( ) ; #line 187 "../../src/cfront.h"extern int set_scope ( ) ; #line 188 "../../src/cfront.h"extern Plist modified_tn ; #line 189 "../../src/cfront.h"extern Pbase start_cl ( ) ; #line 190 "../../src/cfront.h"extern int end_cl ( ) ; #line 191 "../../src/cfront.h"extern Pbase end_enum ( ) ; #line 195 "../../src/cfront.h"extern bit new_type ; #line 196 "../../src/cfront.h"extern Pname cl_obj_vec ; #line 197 "../../src/cfront.h"extern Pname eobj ; #line 206 "../../src/cfront.h"struct type { /* sizeof = 8 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; bit _type_defined ; } ; int _type_print ( ) ; int _type_dcl_print ( ) ; int _type_base_print ( ) ; int _type_del ( ) ; Pname _type_is_cl_obj ( ) ; int _type_is_ref ( ) ; int _type_dcl ( ) ; int _type_tsizeof ( ) ; bit _type_tconst ( ) ; TOK _type_set_const ( ) ; int _type_align ( ) ; TOK _type_kind ( ) ; bit _type_fct_type ( ) ; bit _type_vec_type ( ) ; bit _type_check ( ) ; Ptype _type_deref ( ) ; char * _type_signature ( ) ; #line 235 "../../src/cfront.h"extern bit vrp_equiv ; #line 237 "../../src/cfront.h"struct enumdef { /* sizeof = 20 */TOK _node_base ; TOK _node_n_key ; bit _node_permanent ; bit _type_defined ; Pname _enumdef_mem ; bit _enumdef_e_body ; int _enumdef_no_of_enumerators ; } ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -