#include "defines.h"#include "host.m"#include "host.h"#include "target.m"#include "target.h"#include "globals.m"#include "tokens.m"#include "sytb.m"#include "lex.m"#include "debug.m"#include "globals.h"#include "tokens.h"#include "sytb.h"#include "p_globals.h"#include "lex.h"#include <errno.h>

Go to the source code of this file.
| char ch_after_paren_grp | ( | void | ) |
Definition at line 4330 of file lex.c.
References Func_Entry, Func_Exit, LA_CH_VALUE, scan_thru_close_paren(), and TRACE.
Referenced by parse_implicit_stmt().
Definition at line 5161 of file lex.c.
References AR_convert_str_to_int(), base, CG_INTEGER_DEFAULT_TYPE, CLEAR_TBL_NTRY, const_buf, count, Func_Entry, Func_Exit, i, idx, input_arith_type, ntr_boolean_const_tbl(), ntr_boz_const_tbl(), ntr_type_tbl(), NULL, num_digits(), result, SHIFT_ARITH_RESULT, Short_Typeless_Const, strncpy(), strtoul(), token, TOKEN_CONST_TBL_IDX, TOKEN_LEN, TRACE, TYP_BIT_LEN, TYP_LINEAR, TYP_TYPE, TYP_WORK_IDX, type_tbl, and Typeless.
Referenced by get_operand_letter().
Definition at line 4362 of file lex.c.
References AT_ATTR_LINK, AT_MODULE_IDX, AT_NOT_VISIBLE, AT_OBJ_CLASS, AT_OBJ_NAME_PTR, ATD_ARRAY_IDX, ATD_CLASS, ATD_CONST_IDX, ATD_TYPE_IDX, bytes, Character, CLEAR_TBL_NTRY, CN_INT_TO_C, Constant, CONVERT_DBL_CONST, CONVERT_INT_CONST, CONVERT_REAL_CONST, CREATE_ID, Data_Obj, Default_Typed, errno, Error, FALSE, FALSE_VALUE, Func_Entry, Func_Exit, Integer, INTEGER_DEFAULT_TYPE, Kind_Typed, LEX_STRTOL, Logical, LOGICAL_DEFAULT_TYPE, long, ntr_type_tbl(), NULL, NULL_IDX, PRINTMSG(), Real, Real_4, Real_8, REAL_DEFAULT_TYPE, set_up_logical_constant(), srch_host_sym_tbl(), srch_sym_tbl(), id_str_entry::string, Tok_Const_Char, Tok_Const_False, Tok_Const_Int, Tok_Const_Real, Tok_Const_True, token, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_KIND_LEN, TOKEN_KIND_STR, TOKEN_LEN, TOKEN_LINE, TOKEN_VALUE, TRACE, TRUE, TRUE_VALUE, TYP_DCL_VALUE, TYP_DESC, TYP_LINEAR, TYP_TYPE, TYP_WORK_IDX, type_tbl, and validate_kind().
Referenced by get_operand_digit(), get_operand_dot(), and get_operand_letter().
Definition at line 5004 of file lex.c.
References AR_convert_str_to_int(), base, cast_typeless_constant(), CG_INTEGER_DEFAULT_TYPE, CLEAR_TBL_NTRY, CN_CONST, const_buf, count, FALSE, folder_driver(), Func_Entry, Func_Exit, i, idx, input_arith_type, INTEGER_DEFAULT_TYPE, MINUS, negate, ntr_boolean_const_tbl(), ntr_boz_const_tbl(), ntr_type_tbl(), NULL, NULL_IDX, num_digits(), PLUS, result, SHIFT_ARITH_RESULT, Short_Typeless_Const, strncpy(), strtoul(), token, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_LEN, TOKEN_LINE, TRACE, TRUE, TYP_BIT_LEN, TYP_LINEAR, TYP_TYPE, TYP_WORK_IDX, type_tbl, Typeless, TYPELESS_DEFAULT_TYPE, and Uminus_Opr.
Referenced by get_operand_letter(), and get_operand_quote().
Definition at line 4898 of file lex.c.
References CLEAR_TBL_NTRY, const_buf, Func_Entry, Func_Exit, i, idx, ntr_boolean_const_tbl(), ntr_boz_const_tbl(), ntr_type_tbl(), NULL, result, shift, Short_Typeless_Const, token, TOKEN_CONST_TBL_IDX, TOKEN_LEN, TRACE, TYP_BIT_LEN, TYP_LINEAR, TYP_TYPE, TYP_WORK_IDX, type_tbl, and Typeless.
Referenced by get_operand_digit(), get_operand_letter(), and get_operand_quote().
| int cvrt_str_to_cn | ( | char * | str, | |
| int | type_idx | |||
| ) |
Definition at line 5280 of file lex.c.
References const_buf, CONVERT_DBL_CONST, CONVERT_INT_CONST, CONVERT_REAL_CONST, Func_Entry, Func_Exit, Integer_1, Integer_2, Integer_4, Integer_8, Internal, len, NULL, ok(), PRINTMSG(), Real_16, Real_4, Real_8, stmt_start_line, strcpy, strlen(), token, TOKEN_CONST_TBL_IDX, TRACE, TRUE, and TYP_LINEAR.
Referenced by cmplx_intrinsic(), epsilon_intrinsic(), gen_loop_end_ir(), huge_intrinsic(), and tiny_intrinsic().
Definition at line 1096 of file lex.c.
References ADD_TO_TOKEN_STR, on_off_flags_entry::allow_leading_uscore, AT_SIGN, Ch_Class_Letter, DOLLAR, Error, Func_Entry, Func_Exit, IDENTICAL, Internal, kwd, kwd_idx, kwd_len, la_ch, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_STMT_NUM, LA_CH_VALUE, MAX_ID_LEN, MAX_KWD_LEN, NEXT_LA_CH, NULL, on_off_flags, PRINTMSG(), reset_src_input(), strncmp(), Tok_Id, token, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, VALID_LA_CH, and kwd_entry::value.
Referenced by get_token().
Definition at line 188 of file lex.c.
References Func_Entry, Func_Exit, la_ch, NULL, stmt_EOS_la_ch, and TRACE.
Referenced by parse_err_flush().
Definition at line 220 of file lex.c.
References Ch_Class_Digit, Ch_Class_EOS, Ch_Class_Letter, Ch_Class_Symbol, DBL_QUOTE, Func_Entry, Func_Exit, get_token(), LA_CH_CLASS, LA_CH_VALUE, NEXT_LA_CH, NULL, QUOTE, Tok_Class_Opnd, TRACE, and VALID_LA_CH.
Referenced by parse_err_flush().
Definition at line 1229 of file lex.c.
References ADD_TO_TOKEN_STR, alt_kwd, alt_kwd_idx, Ch_Class_Letter, EQUAL_STRS, Error, FALSE, Func_Entry, Func_Exit, Internal, kwd, kwd_idx, kwd_len, la_ch, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_STMT_NUM, LA_CH_VALUE, len, MAX_ID_LEN, MAX_KWD_LEN, NEXT_LA_CH, NULL, PRINTMSG(), reset_src_input(), sig_blank, Tok_Id, token, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, alt_kwd_entry::val_len, VALID_LA_CH, kwd_entry::value, and alt_kwd_entry::value.
Referenced by get_token().
| token_values_type get_dir_token_from_str | ( | char * | str | ) |
Definition at line 4574 of file lex.c.
References ch_class, Ch_Class_Letter, EXIT, Func_Entry, Func_Exit, i, IDENTICAL, islower(), kwd_dir, kwd_dir_idx, kwd_dir_len, kwd_mic, kwd_mic_idx, kwd_mic_len, kwd_open_mp_dir, kwd_open_mp_dir_idx, kwd_open_mp_dir_len, kwd_sgi_dir, kwd_sgi_dir_idx, kwd_sgi_dir_len, MAX_KWD_LEN, NULL, strncmp(), Tok_Id, Tok_Unknown, TOUPPER, TRACE, USCORE, and kwd_entry::value.
Referenced by process_x_option().
Definition at line 913 of file lex.c.
References ADD_TO_TOKEN_STR, AT_SIGN, Ch_Class_Letter, DOLLAR, Error, Func_Entry, Func_Exit, IDENTICAL, Internal, kwd_dir, kwd_dir_idx, kwd_dir_len, la_ch, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_STMT_NUM, LA_CH_VALUE, MAX_ID_LEN, MAX_KWD_LEN, NEXT_LA_CH, NULL, PRINTMSG(), reset_src_input(), strncmp(), Tok_Id, token, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, VALID_LA_CH, and kwd_entry::value.
Referenced by get_token().
Definition at line 1051 of file lex.c.
References Func_Entry, Func_Exit, Internal, LA_CH_VALUE, LPAREN, NULL, PRINTMSG(), put_format_in_tbl(), Tok_Const_Char, token, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_LINE, TOKEN_VALUE, TRACE, and TRUE.
Referenced by get_token().
Definition at line 1365 of file lex.c.
References ADD_TO_TOKEN_STR, Ch_Class_Digit, CHECK_FOR_FREE_BLANK, Error, Func_Entry, Func_Exit, Internal, LA_CH_CLASS, LA_CH_VALUE, NEXT_LA_CH, NULL, PRINTMSG(), sig_blank, Tok_Label, token, TOKEN_COLUMN, TOKEN_ERR, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, and ZERO.
Referenced by get_token().
Definition at line 1440 of file lex.c.
References ADD_TO_TOKEN_STR, AT_SIGN, Ch_Class_Letter, DOLLAR, Error, Func_Entry, Func_Exit, IDENTICAL, Internal, kwd_mic, kwd_mic_idx, kwd_mic_len, la_ch, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_STMT_NUM, LA_CH_VALUE, MAX_ID_LEN, MAX_KWD_LEN, NEXT_LA_CH, NULL, PRINTMSG(), reset_src_input(), strncmp(), Tok_Id, token, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, VALID_LA_CH, and kwd_entry::value.
Referenced by get_token().
Definition at line 1708 of file lex.c.
References ADD_TO_TOKEN_STR, AT_SIGN, Ch_Class_Digit, Ch_Class_Letter, DOLLAR, Error, Func_Entry, Func_Exit, IDENTICAL, Internal, kwd_open_mp_dir, kwd_open_mp_dir_idx, kwd_open_mp_dir_len, la_ch, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_STMT_NUM, LA_CH_VALUE, MAX_ID_LEN, MAX_KWD_LEN, NEXT_LA_CH, NULL, PRINTMSG(), reset_src_input(), strncmp(), Tok_Id, token, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, VALID_LA_CH, and kwd_entry::value.
Referenced by get_token().
Definition at line 2271 of file lex.c.
References ADD_TO_CONST_BUF, ADD_TO_TOKEN_KIND_STR, Ansi, atoi(), BLANK, Caution, Ch_Class_Digit, Ch_Class_Letter, CHECK_FOR_FREE_BLANK, cmd_line_flags, CN_HOLLERITH_ENDIAN, CN_HOLLERITH_TYPE, const_buf, convert_const(), CONVERT_DBL_CONST, convert_octal_literal(), CONVERT_REAL_CONST, DBL_QUOTE, delim, DOT, DOUBLE_PRECISION_TYPE_IDX, on_off_flags_entry::enable_double_precision, EOS, Error, EXIT, exponent(), FALSE, Func_Entry, Func_Exit, H_Hollerith, i, Internal, IS_OCT_DIGIT, L_Hollerith, la_ch, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_COLUMN, LA_CH_LINE, LA_CH_STMT_NUM, LA_CH_VALUE, MAX_ID_LEN, MAX_OCT_CONST_LEN, MINUS, NEXT_LA_CH, NEXT_LA_CH_LITERAL, NULL, NULL_IDX, on_off_flags, PLUS, PRINTMSG(), put_char_const_in_tbl(), QUOTE, R_Hollerith, Real_16, reset_src_input(), result, cmd_line_flags_entry::s_default32, sig_blank, Tok_Const_Boolean, Tok_Const_Char, Tok_Const_Dbl, Tok_Const_Hollerith, Tok_Const_Int, Tok_Const_Quad, Tok_Const_Real, token, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_KIND_LEN, TOKEN_KIND_STR, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, VALID_LA_CH, Warning, and ZERO.
Referenced by get_token().
Definition at line 2722 of file lex.c.
References ADD_TO_CONST_BUF, ADD_TO_TOKEN_KIND_STR, ADD_TO_TOKEN_STR, Ansi, AT_ATTR_LINK, AT_OBJ_CLASS, BLANK, Caution, Ch_Class_Digit, Ch_Class_Letter, CHECK_FOR_FREE_BLANK, cmd_line_flags, const_buf, convert_const(), CONVERT_DBL_CONST, CONVERT_REAL_CONST, DOT, DOUBLE_PRECISION_TYPE_IDX, on_off_flags_entry::enable_double_precision, EOS, EQUAL_STRS, Error, EXIT, exponent(), FALSE, Func_Entry, Func_Exit, Interface, Internal, la_ch, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_COLUMN, LA_CH_LINE, LA_CH_STMT_NUM, LA_CH_VALUE, MAX_ID_LEN, MINUS, NEXT_LA_CH, NULL, NULL_IDX, on_off_flags, PLUS, PRINTMSG(), Real_16, reset_lex(), reset_src_input(), result, cmd_line_flags_entry::s_default32, sig_blank, srch_host_sym_tbl(), srch_sym_tbl(), Tok_Const_Dbl, Tok_Const_False, Tok_Const_Quad, Tok_Const_Real, Tok_Const_True, Tok_Unknown, token, TOKEN_BUF_IDX, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_KIND_LEN, TOKEN_KIND_STR, TOKEN_LEN, TOKEN_LINE, TOKEN_STMT_NUM, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, VALID_LA_CH, and Warning.
Referenced by get_token().
Definition at line 3065 of file lex.c.
References ADD_TO_CONST_BUF, ADD_TO_TOKEN_STR, Ansi, BLANK, Ch_Class_Letter, const_buf, convert_binary_literal(), convert_const(), convert_hex_literal(), convert_octal_literal(), Data_Stmt, DBL_QUOTE, delim, EOS, Error, FALSE, Func_Entry, Func_Exit, Internal, IS_BIN_DIGIT, IS_OCT_DIGIT, isxdigit(), LA_CH_CLASS, LA_CH_VALUE, MAX_BIN_CONST_LEN, MAX_HEX_CONST_LEN, MAX_ID_LEN, MAX_OCT_CONST_LEN, MINUS, NEXT_LA_CH, NULL, NULL_IDX, PLUS, prefix, PRINTMSG(), put_char_const_in_tbl(), QUOTE, result, sig_blank, stmt_type, strcpy, TAB, Tok_Const_Boolean, Tok_Const_Boz, Tok_Const_Char, Tok_Id, token, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_KIND_LEN, TOKEN_KIND_STR, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, VALID_LA_CH, and ZERO.
Referenced by get_token().
Definition at line 3408 of file lex.c.
References ADD_TO_CONST_BUF, Ansi, BLANK, C_INT_TO_CN, CG_INTEGER_DEFAULT_TYPE, Character, CHARACTER_DEFAULT_TYPE, CLEAR_TBL_NTRY, CN_CONST, CN_HOLLERITH_ENDIAN, CN_HOLLERITH_TYPE, CN_Tbl_Idx, CN_TYPE_IDX, const_buf, Const_Len_Char, convert_hex_literal(), convert_octal_literal(), DBL_QUOTE, delim, EOS, Error, FALSE, Func_Entry, Func_Exit, H_Hollerith, i, Internal, IS_OCT_DIGIT, isxdigit(), L_Hollerith, LA_CH_VALUE, MAX_HEX_CONST_LEN, MAX_OCT_CONST_LEN, MINUS, NEXT_LA_CH, ntr_type_tbl(), NULL, NULL_IDX, PLUS, PRINTMSG(), put_char_const_in_tbl(), QUOTE, R_Hollerith, result, shift, sig_blank, TAB, Tok_Const_Boolean, Tok_Const_Char, Tok_Const_Hollerith, token, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_KIND_LEN, TOKEN_KIND_STR, TOKEN_LEN, TOKEN_LINE, TOKEN_VALUE, TRACE, TRUE, TYP_CHAR_CLASS, TYP_FLD, TYP_IDX, TYP_LINEAR, TYP_TYPE, TYP_WORK_IDX, type_tbl, and ZERO.
Referenced by get_token().
Definition at line 3725 of file lex.c.
References Ch_Class_Letter, Ch_Class_Symbol, DOT, EQUAL, FALSE, Func_Entry, Func_Exit, get_operator_dot(), GT, Internal, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_STMT_NUM, LA_CH_VALUE, LT, MINUS, NEXT_LA_CH, NULL, PERCENT, PLUS, PRINTMSG(), reset_lex(), result, RPAREN, sig_blank, SLASH, STAR, Tok_Op_Add, Tok_Op_Assign, Tok_Op_Concat, Tok_Op_Deref, Tok_Op_Div, Tok_Op_Eq, Tok_Op_Ge, Tok_Op_Gt, Tok_Op_Le, Tok_Op_Lg, Tok_Op_Lt, Tok_Op_Mult, Tok_Op_Ne, Tok_Op_Power, Tok_Op_Ptr_Assign, Tok_Op_Sub, Tok_Unknown, token, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, and TRUE.
Referenced by get_token().
Definition at line 3922 of file lex.c.
References ADD_TO_TOKEN_STR, Ansi, AT_ATTR_LINK, AT_OBJ_CLASS, Ch_Class_Letter, curr_stmt_sh_idx, DOT, dot_op, dot_op_idx, dot_op_len, Error, FALSE, Func_Entry, Func_Exit, i, IDENTICAL, Interface, Interface_Stmt, LA_CH_CLASS, LA_CH_COLUMN, LA_CH_LINE, LA_CH_VALUE, MAX_ID_LEN, NEXT_LA_CH, NULL, NULL_IDX, PRINTMSG(), result, SH_STMT_TYPE, sig_blank, srch_host_sym_tbl(), srch_sym_tbl(), strncmp(), Tok_Const_False, Tok_Const_True, Tok_Op_And, Tok_Op_Defined, Tok_Op_Neqv, Tok_Op_Not, Tok_Op_Or, token, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, tolower(), TRACE, TRUE, and kwd_entry::value.
Referenced by get_operator().
Definition at line 4147 of file lex.c.
References EOS, Error, FALSE, Func_Entry, Func_Exit, Internal, LA_CH_VALUE, LPAREN, NEXT_LA_CH, NULL, PRINTMSG(), result, RPAREN, token, TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by get_token().
Definition at line 4211 of file lex.c.
References COLON, COMMA, DASH, EOS, EQUAL, Func_Entry, Func_Exit, GT, LA_CH_VALUE, LPAREN, NEXT_LA_CH, NULL, RPAREN, sig_blank, SLASH, STAR, Tok_EOS, Tok_Punct_Colon, Tok_Punct_Colon_Colon, Tok_Punct_Comma, Tok_Punct_Dash, Tok_Punct_Eq, Tok_Punct_Lbrkt, Tok_Punct_Lparen, Tok_Punct_Rbrkt, Tok_Punct_Rename, Tok_Punct_Rparen, Tok_Punct_Slash, Tok_Punct_Star, Tok_Unknown, token, TOKEN_LEN, TOKEN_STR, TOKEN_VALUE, TRACE, and TRUE.
Referenced by get_token().
Definition at line 1845 of file lex.c.
References ADD_TO_TOKEN_STR, AT_SIGN, Ch_Class_Digit, Ch_Class_Letter, DOLLAR, Error, Func_Entry, Func_Exit, IDENTICAL, Internal, kwd_sgi_dir, kwd_sgi_dir_idx, kwd_sgi_dir_len, la_ch, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_STMT_NUM, LA_CH_VALUE, MAX_ID_LEN, MAX_KWD_LEN, NEXT_LA_CH, NULL, PRINTMSG(), reset_src_input(), strncmp(), Tok_Id, token, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, VALID_LA_CH, and kwd_entry::value.
Referenced by get_token().
| boolean get_token | ( | token_class_type | class | ) |
Definition at line 354 of file lex.c.
References ADD_TO_CONST_BUF, ADD_TO_TOKEN_STR, on_off_flags_entry::allow_leading_uscore, Ansi, Ch_Class_Digit, Ch_Class_Dir1, Ch_Class_Dir2, Ch_Class_Dir3, Ch_Class_Dir4, Ch_Class_EOS, Ch_Class_Letter, Ch_Class_Symbol, CHECK_FOR_FREE_BLANK, COLON, comp_phase, const_buf, CONVERT_INT_CONST, DBL_QUOTE, DOT, Error, FALSE, Fixed_Form, fixed_get_keyword(), free_get_keyword(), Func_Entry, Func_Exit, get_directive(), get_format_str(), get_label(), get_micro_directive(), get_open_mp_directive(), get_operand_digit(), get_operand_dot(), get_operand_letter(), get_operand_quote(), get_operator(), get_program_str(), get_punctuator(), get_sgi_directive(), havent_issued_ndollarpes_ansi, initial_token, INTEGER_DEFAULT_TYPE, Internal, LA_CH_BUF_IDX, LA_CH_CLASS, LA_CH_COLUMN, LA_CH_LINE, LA_CH_STMT_NUM, LA_CH_VALUE, Lex_Parsing, LPAREN, MAX_ID_LEN, NEXT_LA_CH, NULL, on_off_flags, Pass1_Parsing, PRINTMSG(), QUOTE, reset_lex(), result, sig_blank, source_form, strcmp(), Tok_Class_Construct_Def, Tok_Class_Dbg_Kwd, Tok_Class_Dir_Kwd, Tok_Class_DO, Tok_Class_Format_Str, Tok_Class_Id, Tok_Class_Int_Spec, Tok_Class_Keyword, Tok_Class_Label, Tok_Class_Mic_Kwd, Tok_Class_Op, Tok_Class_Open_Mp_Dir_Kwd, Tok_Class_Opnd, Tok_Class_Program_Str, Tok_Class_Punct, Tok_Class_SGI_Dir_Kwd, Tok_Const_Int, Tok_Id, Tok_Kwd_Dir, Tok_Kwd_Do, token, TOKEN_BUF_IDX, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STMT_NUM, TOKEN_STR, TOKEN_VALUE, TRACE, TRUE, USCORE, and VALID_LA_CH.
Definition at line 119 of file lex.c.
References EOS, FALSE, Fixed_Form, fixed_get_char(), fixed_get_char_literal(), free_get_char(), free_get_char_literal(), Func_Entry, Func_Exit, get_char, get_char_literal, havent_issued_ndollarpes_ansi, initial_token, NEXT_LA_CH, NULL, source_form, Tok_Unknown, TOKEN_BUF_IDX, TOKEN_COLUMN, TOKEN_ERR, TOKEN_KIND_LEN, TOKEN_KIND_STR, TOKEN_LEN, TOKEN_LINE, TOKEN_STMT_NUM, TOKEN_STR_WD, TOKEN_VALUE, TRACE, and TRUE.
Referenced by init_compiler().
| boolean is_dollar_directive | ( | int | start_idx | ) |
Definition at line 1978 of file lex.c.
References blank, ch_class, Ch_Class_Letter, EXIT, FALSE, Func_Entry, Func_Exit, IDENTICAL, idx, islower(), kwd_sgi_dir, kwd_sgi_dir_idx, kwd_sgi_dir_len, MAX_KWD_LEN, newline, NULL, nxt_line, strncmp(), tab, Tok_SGI_Dir_Chunk, Tok_SGI_Dir_Copyin, Tok_SGI_Dir_Distribute, Tok_SGI_Dir_Distribute_Reshape, Tok_SGI_Dir_Doacross, Tok_SGI_Dir_Dynamic, Tok_SGI_Dir_Mp_Schedtype, Tok_SGI_Dir_Page_Place, Tok_SGI_Dir_Redistribute, TOUPPER, TRACE, TRUE, and USCORE.
Referenced by fixed_classify_line(), and free_classify_line().
| boolean is_par_directive | ( | int | start_idx | ) |
Definition at line 1570 of file lex.c.
References blank, ch_class, Ch_Class_Letter, EXIT, FALSE, Func_Entry, Func_Exit, IDENTICAL, idx, islower(), kwd_sgi_dir, kwd_sgi_dir_idx, kwd_sgi_dir_len, MAX_KWD_LEN, newline, NULL, nxt_line, strncmp(), tab, Tok_SGI_Dir_Barrier, Tok_SGI_Dir_Criticalsection, Tok_SGI_Dir_Endcriticalsection, Tok_SGI_Dir_Endparallel, Tok_SGI_Dir_Endpdo, Tok_SGI_Dir_Endpsection, Tok_SGI_Dir_Endpsections, Tok_SGI_Dir_Endsingleprocess, Tok_SGI_Dir_Parallel, Tok_SGI_Dir_Paralleldo, Tok_SGI_Dir_Pdo, Tok_SGI_Dir_Psection, Tok_SGI_Dir_Psections, Tok_SGI_Dir_Section, Tok_SGI_Dir_Singleprocess, TOUPPER, TRACE, TRUE, and USCORE.
Referenced by fixed_classify_line(), and free_classify_line().
| boolean is_star_directive | ( | int | start_idx | ) |
Definition at line 2106 of file lex.c.
References blank, ch_class, Ch_Class_Letter, EXIT, FALSE, Func_Entry, Func_Exit, IDENTICAL, idx, islower(), kwd_sgi_dir, kwd_sgi_dir_idx, kwd_sgi_dir_len, MAX_KWD_LEN, newline, NULL, nxt_line, strncmp(), tab, Tok_SGI_Dir_Aggressiveinner, Tok_SGI_Dir_Align_Symbol, Tok_SGI_Dir_Assert, Tok_SGI_Dir_Blockable, Tok_SGI_Dir_Blockingsize, Tok_SGI_Dir_Concurrentize, Tok_SGI_Dir_Fill_Symbol, Tok_SGI_Dir_Fission, Tok_SGI_Dir_Fissionable, Tok_SGI_Dir_Flush, Tok_SGI_Dir_Fusable, Tok_SGI_Dir_Fuse, Tok_SGI_Dir_Inline, Tok_SGI_Dir_Interchange, Tok_SGI_Dir_Ipa, Tok_SGI_Dir_Limit, Tok_SGI_Dir_Minconcurrent, Tok_SGI_Dir_Noblocking, Tok_SGI_Dir_Noconcurrentize, Tok_SGI_Dir_Nofission, Tok_SGI_Dir_Nofusion, Tok_SGI_Dir_Noinline, Tok_SGI_Dir_Nointerchange, Tok_SGI_Dir_Noipa, Tok_SGI_Dir_Opaque, Tok_SGI_Dir_Optional, Tok_SGI_Dir_Prefetch, Tok_SGI_Dir_Prefetch_Manual, Tok_SGI_Dir_Prefetch_Ref, Tok_SGI_Dir_Prefetch_Ref_Disable, Tok_SGI_Dir_Purpleconditional, Tok_SGI_Dir_Purpleunconditional, Tok_SGI_Dir_Regionbegin, Tok_SGI_Dir_Regionend, Tok_SGI_Dir_Section_Gp, Tok_SGI_Dir_Section_Non_Gp, Tok_SGI_Dir_Unroll, TOUPPER, TRACE, TRUE, and USCORE.
Referenced by fixed_classify_line(), and free_classify_line().
| void reset_lex | ( | int | buf_idx, | |
| int | stmt_num | |||
| ) |
Definition at line 876 of file lex.c.
References Func_Entry, Func_Exit, NEXT_LA_CH, NULL, reset_src_input(), and TRACE.
Referenced by create_kwd_text(), determine_stmt_type(), get_operand_dot(), get_operator(), get_token(), parse_actual_arg_spec(), parse_and_opnd(), parse_assignment_stmt(), parse_dir_directives(), parse_do_stmt(), parse_else_stmt(), parse_end_stmt(), parse_err_flush(), parse_forall(), parse_generic_spec(), parse_if_stmt(), parse_imp_do(), parse_inquire_stmt(), parse_io_list(), parse_kind_selector(), parse_length_selector(), parse_mic_directives(), parse_mult_opnd(), parse_only_spec(), parse_prefetch_ref(), parse_prefix_spec(), parse_type_dcl_stmt(), parse_type_spec(), parse_typed_function_stmt(), and parse_use_stmt().
Definition at line 5531 of file lex.c.
References Func_Entry, Func_Exit, i, idx, kwd_entry::name, NULL, printf(), and TRACE.
Referenced by set_up_token_tables().
Definition at line 5355 of file lex.c.
References dot_op, dot_op_idx, dot_op_len, Func_Entry, Func_Exit, i, kwd, kwd_dir, kwd_dir_idx, kwd_dir_len, kwd_idx, kwd_len, kwd_mic, kwd_mic_idx, kwd_mic_len, kwd_open_mp_dir, kwd_open_mp_dir_idx, kwd_open_mp_dir_len, kwd_sgi_dir, kwd_sgi_dir_idx, kwd_sgi_dir_len, len, malloc, NULL, set_up_letter_idx_table(), strlen(), Tok_LAST, and TRACE.
Referenced by init_compiler().
char USMID[] = "\n@(#)5.0_pl/sources/lex.c 5.8 08/23/99 17:26:51\n" [static] |
1.5.6