Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
lex.c File Reference
#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 "arith.h"
#include "globals.h"
#include "tokens.h"
#include "sytb.h"
#include "p_globals.h"
#include "lex.h"
#include <errno.h>
Include dependency graph for lex.c:

Go to the source code of this file.

Functions

static boolean convert_const (void)
static boolean fixed_get_keyword (void)
static boolean free_get_keyword (void)
static boolean get_directive (void)
static boolean get_format_str (void)
static boolean get_label (void)
static boolean get_micro_directive (void)
static boolean get_open_mp_directive (void)
static boolean get_sgi_directive (void)
static boolean get_openad_directive (void)
static boolean get_operand_digit (void)
static boolean get_operand_dot (void)
static boolean get_operand_letter (void)
static boolean get_operand_quote (void)
static boolean get_operator (void)
static boolean get_operator_dot (void)
static boolean get_program_str (void)
static boolean get_punctuator (void)
static void convert_octal_literal (boolean)
static void convert_hex_literal (boolean)
static void convert_binary_literal (boolean)
static void set_up_letter_idx_table (int *, kwd_type *, int)
static boolean get_debug_directive (void)
void init_lex (void)
void flush_LA_to_EOS (void)
void flush_LA_to_symbol (void)
boolean get_token (token_class_type class)
void reset_lex (int buf_idx, int stmt_num)
boolean is_par_directive (int start_idx)
boolean is_dollar_directive (int start_idx)
boolean is_star_directive (int start_idx)
char ch_after_paren_grp (void)
token_values_type get_dir_token_from_str (char *str)
int cvrt_str_to_cn (char *str, int type_idx)
void set_up_token_tables (void)

Variables

static char USMID [] = "\n@(#)5.0_pl/sources/lex.c 5.8 08/23/99 17:26:51\n"

Function Documentation

char ch_after_paren_grp ( void  )

Definition at line 4315 of file lex.c.

References Func_Entry, Func_Exit, LA_CH_VALUE, scan_thru_close_paren(), and TRACE.

Referenced by parse_implicit_stmt().

Here is the call graph for this function:

void flush_LA_to_EOS ( void  )

Definition at line 181 of file lex.c.

References Func_Entry, Func_Exit, la_ch, NULL, stmt_EOS_la_ch, and TRACE.

Referenced by parse_err_flush().

void flush_LA_to_symbol ( void  )

Definition at line 213 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().

Here is the call graph for this function:

static boolean get_format_str ( void  ) [static]

Definition at line 979 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, TRACE, and TRUE.

Referenced by get_token().

Here is the call graph for this function:

static boolean get_label ( void  ) [static]
static boolean get_program_str ( void  ) [static]

Definition at line 4132 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().

Here is the call graph for this function:

Definition at line 268 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_Dir7, 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_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_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, 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_OpenAD_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, TRACE, TRUE, USCORE, and VALID_LA_CH.

Referenced by flush_LA_to_symbol(), and matched_specific_token().

Here is the call graph for this function:

static void set_up_letter_idx_table ( int *  idx_tbl,
kwd_type kwd_tbl,
int  len 
) [static]

Definition at line 5531 of file lex.c.

References Func_Entry, Func_Exit, idx, len, kwd_entry::name, name, NULL, and TRACE.

Referenced by set_up_token_tables().


Variable Documentation

char USMID[] = "\n@(#)5.0_pl/sources/lex.c 5.8 08/23/99 17:26:51\n" [static]

Definition at line 37 of file lex.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines