Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
tokens.m File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LA_CH_CLASS   la_ch.ch_class
#define LA_CH_COLUMN   la_ch.column
#define LA_CH_LINE   la_ch.line
#define LA_CH_VALUE   la_ch.value
#define LA_CH_BUF_IDX   la_ch.stmt_buf_idx
#define LA_CH_STMT_NUM   la_ch.stmt_num
#define TOKEN_COLUMN(TOK)   (TOK).column
#define TOKEN_CONST_TBL_IDX(TOK)   TOKEN_STR_WD(TOK, 0)
#define TOKEN_KIND_LEN(TOK)   (TOK).kind_len
#define TOKEN_KIND_STR(TOK)   (TOK).kind_str
#define TOKEN_LEN(TOK)   (TOK).token_len
#define TOKEN_LINE(TOK)   (TOK).line
#define TOKEN_STR(TOK)   (TOK).token_str.string
#define TOKEN_STR_WD(TOK, WD)   (TOK).token_str.words[WD]
#define TOKEN_VALUE(TOK)   (TOK).value
#define TOKEN_ID(TOK)   (TOK).token_str
#define TOKEN_ERR(TOK)   (TOK).token_err
#define TOKEN_BUF_IDX(TOK)   (TOK).stmt_buf_idx
#define TOKEN_STMT_NUM(TOK)   (TOK).stmt_num
#define LA_CH_TO_ERR_STR(STR, THE_LA)   STR = (THE_LA.ch_class == Ch_Class_EOS) ? "EOS" : &THE_LA.value

Define Documentation

#define LA_CH_TO_ERR_STR (   STR,
  THE_LA 
)    STR = (THE_LA.ch_class == Ch_Class_EOS) ? "EOS" : &THE_LA.value

Definition at line 83 of file tokens.m.

Referenced by parse_err_flush().

#define LA_CH_VALUE   la_ch.value

Definition at line 56 of file tokens.m.

Referenced by ch_after_paren_grp(), create_kwd_text(), determine_stmt_type(), fixed_get_char(), fixed_get_char_literal(), fixed_get_keyword(), flush_LA_to_symbol(), free_get_char(), free_get_char_literal(), free_get_keyword(), get_debug_directive(), get_directive(), get_format_str(), get_label(), get_micro_directive(), get_open_mp_directive(), get_openad_dir_xxx_string(), get_openad_directive(), get_operand_digit(), get_operand_dot(), get_operand_letter(), get_operand_quote(), get_operator(), get_operator_dot(), get_program_str(), get_punctuator(), get_sgi_directive(), get_token(), paren_grp_is_cplx_const(), parse_access_stmt(), parse_actual_arg_spec(), parse_allocate_stmt(), parse_and_opnd(), parse_array_spec(), parse_assert_directive(), parse_assign_stmt(), parse_assignment_stmt(), parse_attr_spec(), parse_attrs(), parse_auxiliary_dir(), parse_backspace_stmt(), parse_block_stmt(), parse_buffer_stmt(), parse_cache_align_name_list(), parse_cache_bypass_dir(), parse_cache_noalloc(), parse_call_stmt(), parse_case_stmt(), parse_close_stmt(), parse_common_dirs(), parse_common_stmt(), parse_contains_stmt(), parse_continue_stmt(), parse_copy_assumed_shape_dir(), parse_cpnt_dcl_stmt(), parse_cycle_stmt(), parse_data_imp_do(), parse_data_stmt(), parse_deallocate_stmt(), parse_decode_stmt(), parse_deref(), parse_derived_type_stmt(), parse_dir_directives(), parse_dir_var_list(), parse_distribution_dir(), parse_do_stmt(), parse_doall_cmic(), parse_dollar_directives(), parse_doparallel_cmic(), parse_dummy_args(), parse_else_stmt(), parse_encode_stmt(), parse_end_stmt(), parse_endfile_stmt(), parse_entry_stmt(), parse_equivalence_stmt(), parse_err_flush(), parse_exit_stmt(), parse_fill_align_symbol(), parse_forall(), parse_format_stmt(), parse_function_stmt(), parse_generic_spec(), parse_goto_stmt(), parse_if_stmt(), parse_ignore_tkr(), parse_imp_do(), parse_implicit_stmt(), parse_initializer(), parse_inline_always_never(), parse_inquire_stmt(), parse_int_or_star_list(), parse_intent_spec(), parse_intent_stmt(), parse_interface_stmt(), parse_io_control_list(), parse_io_list(), parse_label_list(), parse_length_selector(), parse_level_1(), parse_level_2(), parse_lhs(), parse_mic_directives(), parse_module_stmt(), parse_mp_directive(), parse_name_dir(), parse_namelist_stmt(), parse_nosideeffects_dir(), parse_nullify_stmt(), parse_only_spec(), parse_open_mp_clauses(), parse_open_mp_directives(), parse_open_stmt(), parse_openad_directives(), parse_openad_varlist(), parse_operand(), parse_par_directives(), parse_parallel_cmic(), parse_parameter_stmt(), parse_pe_array_spec(), parse_permutation_mic(), parse_pointer_stmt(), parse_prefetch_ref(), parse_prefix_spec(), parse_print_stmt(), parse_prog_unit(), parse_program_stmt(), parse_read_stmt(), parse_redistribute_dir(), parse_reference_list(), parse_return_stmt(), parse_rewind_stmt(), parse_save_stmt(), parse_select_stmt(), parse_sequence_stmt(), parse_sgi_dir_inline(), parse_slash_common_dirs(), parse_star_dir_directives(), parse_star_directives(), parse_stmt_func_stmt(), parse_stop_pause_stmt(), parse_subroutine_stmt(), parse_symmetric_dir(), parse_type_dcl_stmt(), parse_type_spec(), parse_typed_function_stmt(), parse_use_stmt(), parse_var_common_list(), parse_var_name_list(), parse_vfunction_dir(), parse_where_stmt(), parse_write_stmt(), reset_src_input(), scan_thru_close_paren(), set_function_rslt(), stmt_is_save_stmt(), whats_after_brkt_group(), and whats_after_paren_group().

#define TOKEN_COLUMN (   TOK)    (TOK).column

Definition at line 60 of file tokens.m.

Referenced by blk_match_err(), build_fwd_ref_entry(), cc_get_token(), check_for_dup_derived_type_lbl(), check_label_ref(), ck_lbl_construct_name(), convert_const(), convert_hex_literal(), create_kwd_text(), determine_stmt_type(), end_function(), end_internal_proc(), end_module_proc(), end_program_unit(), end_subroutine(), enter_intrinsic_info(), fixed_get_keyword(), free_get_keyword(), gen_attr_and_IR_for_lbl(), gen_directive_ir(), gen_forall_derived_type(), generic_spec_semantics(), get_debug_directive(), get_directive(), get_format_str(), get_label(), get_micro_directive(), get_open_mp_directive(), get_openad_directive(), get_operand_digit(), get_operand_dot(), get_operand_letter(), get_operand_quote(), get_operator(), get_operator_dot(), get_program_str(), get_sgi_directive(), get_token(), implicit_use_semantics(), init_cond_comp(), init_lex(), init_parse_prog_unit(), init_sytb(), issue_attr_blk_err(), issue_attr_err(), make_ro_entry(), ntr_host_in_sym_tbl(), ntr_sym_tbl(), parse_access_stmt(), parse_actual_arg_spec(), parse_add_opnd(), parse_allocate_stmt(), parse_and_opnd(), parse_assert_directive(), parse_assign_stmt(), parse_attr_spec(), parse_attrs(), parse_auxiliary_dir(), parse_backspace_stmt(), parse_bad_stmt(), parse_block_stmt(), parse_buffer_stmt(), parse_cache_align_name_list(), parse_cache_noalloc(), parse_call_stmt(), parse_case_stmt(), parse_cc_add_opnd(), parse_cc_equiv_opnd(), parse_cc_level_2(), parse_cc_level_3(), parse_cc_level_4(), parse_cc_level_5(), parse_cc_level_6(), parse_cc_level_7(), parse_cc_level_8(), parse_cc_line(), parse_cc_mult_opnd(), parse_cc_operand(), parse_cc_or_opnd(), parse_close_stmt(), parse_common_dirs(), parse_common_stmt(), parse_copy_assumed_shape_dir(), parse_cpnt_dcl_stmt(), parse_cycle_stmt(), parse_data_imp_do(), parse_data_stmt(), parse_deallocate_stmt(), parse_decode_stmt(), parse_define_str(), parse_deref(), parse_derived_type_stmt(), parse_dir_directives(), parse_directive_stmt(), parse_distribution_dir(), parse_do_stmt(), parse_doall_cmic(), parse_dollar_directives(), parse_doparallel_cmic(), parse_dummy_args(), parse_else_stmt(), parse_encode_stmt(), parse_end_stmt(), parse_endfile_stmt(), parse_entry_stmt(), parse_equiv_opnd(), parse_equivalence_stmt(), parse_exit_stmt(), parse_expr(), parse_fill_align_symbol(), parse_forall(), parse_format_stmt(), parse_function_stmt(), parse_generic_spec(), parse_goto_stmt(), parse_if_stmt(), parse_ignore_tkr(), parse_imp_do(), parse_implicit_stmt(), parse_inline_always_never(), parse_inquire_stmt(), parse_interface_stmt(), parse_io_control_list(), parse_label_list(), parse_length_selector(), parse_level_1(), parse_level_2(), parse_level_3(), parse_level_4(), parse_level_5(), parse_lhs(), parse_mic_directives(), parse_module_stmt(), parse_mp_directive(), parse_mult_opnd(), parse_name_dir(), parse_namelist_stmt(), parse_nosideeffects_dir(), parse_nullify_stmt(), parse_open_mp_clauses(), parse_open_mp_directives(), parse_open_stmt(), parse_openad_directives(), parse_operand(), parse_or_opnd(), parse_par_directives(), parse_parallel_cmic(), parse_parameter_stmt(), parse_permutation_mic(), parse_pointer_stmt(), parse_prefetch_ref(), parse_prefix_spec(), parse_print_stmt(), parse_prog_unit(), parse_program_stmt(), parse_read_stmt(), parse_redistribute_dir(), parse_rewind_stmt(), parse_save_stmt(), parse_sequence_stmt(), parse_sgi_dir_inline(), parse_slash_common_dirs(), parse_star_directives(), parse_stmt_func_stmt(), parse_stop_pause_stmt(), parse_subroutine_stmt(), parse_symmetric_dir(), parse_type_dcl_stmt(), parse_type_spec(), parse_typed_function_stmt(), parse_use_stmt(), parse_var_common_list(), parse_vfunction_dir(), parse_where_stmt(), parse_write_stmt(), process_blockable_dir(), process_interchange_dir(), reshape_array_semantics(), set_function_rslt(), set_up_pe_offset_attr(), start_new_prog_unit(), start_new_scp(), start_new_subpgm(), and stmt_level_semantics().

#define TOKEN_LEN (   TOK)    (TOK).token_len

Definition at line 64 of file tokens.m.

Referenced by blk_match_err(), build_fake_token(), cc_get_token(), check_for_dup_derived_type_lbl(), check_label_ref(), ck_lbl_construct_name(), convert_binary_literal(), convert_const(), convert_hex_literal(), convert_octal_literal(), create_kwd_text(), enter_cmd_line_cc_define(), enter_intrinsic_info(), enter_predefined_macros(), find_ciitem_idx(), fixed_get_keyword(), free_get_keyword(), gen_attr_and_IR_for_lbl(), gen_forall_derived_type(), gen_loop_lbl_name(), generic_spec_semantics(), get_debug_directive(), get_directive(), get_label(), get_micro_directive(), get_open_mp_directive(), get_openad_directive(), get_operand_digit(), get_operand_dot(), get_operand_letter(), get_operand_quote(), get_operator(), get_operator_dot(), get_punctuator(), get_sgi_directive(), get_token(), implicit_use_semantics(), init_cond_comp(), init_lex(), init_parse_prog_unit(), init_sytb(), make_ro_entry(), match_blk(), ntr_cc_sym_tbl(), ntr_sym_tbl(), parse_actual_arg_spec(), parse_assign_stmt(), parse_assignment_stmt(), parse_attrs(), parse_auxiliary_dir(), parse_block_stmt(), parse_cache_align_name_list(), parse_cache_noalloc(), parse_call_stmt(), parse_case_stmt(), parse_cc_line(), parse_cc_operand(), parse_common_dirs(), parse_common_stmt(), parse_copy_assumed_shape_dir(), parse_cpnt_dcl_stmt(), parse_data_imp_do(), parse_data_stmt(), parse_decode_stmt(), parse_define_str(), parse_deref(), parse_derived_type_stmt(), parse_dir_directives(), parse_directive_stmt(), parse_distribution_dir(), parse_do_stmt(), parse_dummy_args(), parse_else_stmt(), parse_encode_stmt(), parse_end_stmt(), parse_entry_stmt(), parse_equivalence_stmt(), parse_expr(), parse_fill_align_symbol(), parse_generic_spec(), parse_goto_stmt(), parse_ignore_tkr(), parse_implicit_stmt(), parse_inline_always_never(), parse_io_control_list(), parse_level_1(), parse_module_stmt(), parse_name_dir(), parse_namelist_stmt(), parse_nosideeffects_dir(), parse_open_mp_directives(), parse_operand(), parse_parameter_stmt(), parse_permutation_mic(), parse_pointer_stmt(), parse_print_stmt(), parse_prog_unit(), parse_read_stmt(), parse_redistribute_dir(), parse_sgi_dir_inline(), parse_slash_common_dirs(), parse_star_directives(), parse_stmt_func_stmt(), parse_symmetric_dir(), parse_type_dcl_stmt(), parse_type_spec(), parse_use_stmt(), parse_var_common_list(), parse_vfunction_dir(), parse_write_stmt(), print_at_by_name(), print_ln_by_name(), print_sb_by_name(), reshape_array_semantics(), scan_cc_line(), scan_fixed_comment(), scan_fortran_stmt(), set_function_rslt(), set_up_pe_offset_attr(), srch_host_stor_blk_tbl(), start_new_prog_unit(), start_new_scp(), and start_new_subpgm().

#define TOKEN_LINE (   TOK)    (TOK).line

Definition at line 65 of file tokens.m.

Referenced by blk_match_err(), build_fwd_ref_entry(), cc_get_token(), check_for_dup_derived_type_lbl(), check_label_ref(), ck_lbl_construct_name(), convert_const(), convert_hex_literal(), create_kwd_text(), determine_stmt_type(), end_function(), end_internal_proc(), end_module_proc(), end_program_unit(), end_subroutine(), enter_intrinsic_info(), fixed_get_keyword(), free_get_keyword(), gen_attr_and_IR_for_lbl(), gen_directive_ir(), gen_forall_derived_type(), generic_spec_semantics(), get_debug_directive(), get_directive(), get_format_str(), get_label(), get_micro_directive(), get_open_mp_directive(), get_openad_directive(), get_operand_digit(), get_operand_dot(), get_operand_letter(), get_operand_quote(), get_operator(), get_operator_dot(), get_program_str(), get_sgi_directive(), get_token(), implicit_use_semantics(), init_cond_comp(), init_lex(), init_parse_prog_unit(), init_sytb(), issue_attr_blk_err(), issue_attr_err(), make_ro_entry(), ntr_host_in_sym_tbl(), ntr_sym_tbl(), parse_access_stmt(), parse_actual_arg_spec(), parse_add_opnd(), parse_allocate_stmt(), parse_and_opnd(), parse_assert_directive(), parse_assign_stmt(), parse_attr_spec(), parse_attrs(), parse_auxiliary_dir(), parse_backspace_stmt(), parse_bad_stmt(), parse_block_stmt(), parse_buffer_stmt(), parse_cache_align_name_list(), parse_cache_noalloc(), parse_call_stmt(), parse_case_stmt(), parse_cc_add_opnd(), parse_cc_equiv_opnd(), parse_cc_level_2(), parse_cc_level_3(), parse_cc_level_4(), parse_cc_level_5(), parse_cc_level_6(), parse_cc_level_7(), parse_cc_level_8(), parse_cc_line(), parse_cc_mult_opnd(), parse_cc_operand(), parse_cc_or_opnd(), parse_close_stmt(), parse_common_dirs(), parse_common_stmt(), parse_copy_assumed_shape_dir(), parse_cpnt_dcl_stmt(), parse_cycle_stmt(), parse_data_imp_do(), parse_data_stmt(), parse_deallocate_stmt(), parse_decode_stmt(), parse_define_str(), parse_deref(), parse_derived_type_stmt(), parse_dir_directives(), parse_directive_stmt(), parse_distribution_dir(), parse_do_stmt(), parse_doall_cmic(), parse_dollar_directives(), parse_doparallel_cmic(), parse_dummy_args(), parse_else_stmt(), parse_encode_stmt(), parse_end_stmt(), parse_endfile_stmt(), parse_entry_stmt(), parse_equiv_opnd(), parse_equivalence_stmt(), parse_exit_stmt(), parse_expr(), parse_fill_align_symbol(), parse_forall(), parse_format_stmt(), parse_function_stmt(), parse_generic_spec(), parse_goto_stmt(), parse_if_stmt(), parse_ignore_tkr(), parse_imp_do(), parse_implicit_stmt(), parse_inline_always_never(), parse_inquire_stmt(), parse_interface_stmt(), parse_io_control_list(), parse_label_list(), parse_length_selector(), parse_level_1(), parse_level_2(), parse_level_3(), parse_level_4(), parse_level_5(), parse_lhs(), parse_mic_directives(), parse_module_stmt(), parse_mp_directive(), parse_mult_opnd(), parse_name_dir(), parse_namelist_stmt(), parse_nosideeffects_dir(), parse_nullify_stmt(), parse_open_mp_clauses(), parse_open_mp_directives(), parse_open_stmt(), parse_openad_directives(), parse_operand(), parse_or_opnd(), parse_par_directives(), parse_parallel_cmic(), parse_parameter_stmt(), parse_permutation_mic(), parse_pointer_stmt(), parse_prefetch_ref(), parse_prefix_spec(), parse_print_stmt(), parse_prog_unit(), parse_program_stmt(), parse_read_stmt(), parse_redistribute_dir(), parse_rewind_stmt(), parse_save_stmt(), parse_sequence_stmt(), parse_sgi_dir_inline(), parse_slash_common_dirs(), parse_star_directives(), parse_stmt_func_stmt(), parse_stop_pause_stmt(), parse_subroutine_stmt(), parse_symmetric_dir(), parse_type_dcl_stmt(), parse_type_spec(), parse_typed_function_stmt(), parse_use_stmt(), parse_var_common_list(), parse_vfunction_dir(), parse_where_stmt(), parse_write_stmt(), process_blockable_dir(), process_interchange_dir(), reshape_array_semantics(), scan_fixed_comment(), scan_fortran_stmt(), set_function_rslt(), set_up_pe_offset_attr(), start_new_prog_unit(), start_new_scp(), start_new_subpgm(), and stmt_level_semantics().

#define TOKEN_STR (   TOK)    (TOK).token_str.string

Definition at line 66 of file tokens.m.

Referenced by build_fake_token(), cc_get_token(), check_for_dup_derived_type_lbl(), check_label_ref(), ck_lbl_construct_name(), create_kwd_text(), enter_cmd_line_cc_define(), enter_predefined_macros(), find_ciitem_idx(), fixed_get_keyword(), free_get_keyword(), gen_attr_and_IR_for_lbl(), gen_loop_lbl_name(), generic_spec_semantics(), get_debug_directive(), get_directive(), get_label(), get_micro_directive(), get_open_mp_directive(), get_openad_directive(), get_operand_digit(), get_operand_dot(), get_operand_letter(), get_operator(), get_operator_dot(), get_punctuator(), get_sgi_directive(), get_token(), implicit_use_semantics(), init_parse_prog_unit(), make_external_name(), matched_specific_token(), minval_intrinsic(), ntr_cc_sym_tbl(), ntr_host_in_sym_tbl(), ntr_sym_tbl(), parse_actual_arg_spec(), parse_allocate_stmt(), parse_assert_directive(), parse_assign_stmt(), parse_assignment_stmt(), parse_attrs(), parse_auxiliary_dir(), parse_block_stmt(), parse_buffer_stmt(), parse_cache_align_name_list(), parse_cache_noalloc(), parse_call_stmt(), parse_cc_line(), parse_cc_operand(), parse_common_dirs(), parse_common_stmt(), parse_copy_assumed_shape_dir(), parse_cpnt_dcl_stmt(), parse_data_imp_do(), parse_data_stmt(), parse_deallocate_stmt(), parse_decode_stmt(), parse_define_str(), parse_deref(), parse_derived_type_stmt(), parse_dir_directives(), parse_directive_stmt(), parse_distribution_dir(), parse_do_stmt(), parse_dummy_args(), parse_encode_stmt(), parse_end_stmt(), parse_entry_stmt(), parse_equivalence_stmt(), parse_expr(), parse_fill_align_symbol(), parse_generic_spec(), parse_goto_stmt(), parse_ignore_tkr(), parse_implicit_stmt(), parse_inline_always_never(), parse_inquire_stmt(), parse_io_control_list(), parse_level_1(), parse_lhs(), parse_module_stmt(), parse_name_dir(), parse_namelist_stmt(), parse_nosideeffects_dir(), parse_open_mp_clauses(), parse_open_mp_directives(), parse_parameter_stmt(), parse_permutation_mic(), parse_pointer_stmt(), parse_print_stmt(), parse_prog_unit(), parse_read_stmt(), parse_redistribute_dir(), parse_sgi_dir_inline(), parse_slash_common_dirs(), parse_star_directives(), parse_stmt_func_stmt(), parse_symmetric_dir(), parse_type_dcl_stmt(), parse_type_spec(), parse_use_stmt(), parse_var_common_list(), parse_vfunction_dir(), parse_write_stmt(), print_at_by_name(), print_ln_by_name(), print_sb_by_name(), reshape_array_semantics(), scan_cc_line(), scan_fixed_comment(), scan_fortran_stmt(), set_function_rslt(), set_up_pe_offset_attr(), srch_host_stor_blk_tbl(), start_new_prog_unit(), start_new_scp(), and start_new_subpgm().

#define TOKEN_STR_WD (   TOK,
  WD 
)    (TOK).token_str.words[WD]
#define TOKEN_VALUE (   TOK)    (TOK).value

Definition at line 68 of file tokens.m.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines