Uc_location Class Reference

#include <ucloc.h>

Inheritance diagram for Uc_location:

Inheritance graph
[legend]
Collaboration diagram for Uc_location:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Uc_location ()
const int get_line ()
const char * get_source ()
void error (char *s)

Static Public Member Functions

static void set_cur (const char *s, int l)
static void increment_cur_line ()
static void yyerror (char *s)
static int get_num_errors ()

Private Attributes

char * source
int line

Static Private Attributes

static std::vector< char * > source_names
static char * cur_source
static int cur_line
static int num_errors

Detailed Description

Definition at line 33 of file ucloc.h.


Constructor & Destructor Documentation

Uc_location::Uc_location (  )  [inline]

Definition at line 42 of file ucloc.h.


Member Function Documentation

void Uc_location::set_cur ( const char *  s,
int  l 
) [static]

Definition at line 49 of file ucloc.cc.

References len.

Referenced by Include(), main(), Set_location(), and yylex().

static void Uc_location::increment_cur_line (  )  [inline, static]

Definition at line 46 of file ucloc.h.

References cur_line.

Referenced by yylex().

const int Uc_location::get_line (  )  [inline]

Definition at line 48 of file ucloc.h.

References line.

Referenced by yylex().

const char* Uc_location::get_source (  )  [inline]

Definition at line 50 of file ucloc.h.

References source.

Referenced by yylex().

void Uc_location::error ( char *  s  ) 

Definition at line 77 of file ucloc.cc.

Referenced by Uc_function::find_string_prefix().

void Uc_location::yyerror ( char *  s  )  [static]

Definition at line 90 of file ucloc.cc.

Referenced by Uc_function::add_break(), Uc_scope::add_function_symbol(), Uc_intrinsic_symbol::gen_call(), Include(), Uc_function::is_dup(), Uc_function::Uc_function(), Uc_function_symbol::Uc_function_symbol(), yyerror(), and yylex().

static int Uc_location::get_num_errors (  )  [inline, static]

Definition at line 54 of file ucloc.h.

References num_errors.

Referenced by main().


Member Data Documentation

std::vector< char * > Uc_location::source_names [static, private]

Definition at line 35 of file ucloc.h.

char * Uc_location::cur_source [static, private]

Definition at line 36 of file ucloc.h.

int Uc_location::cur_line [static, private]

Definition at line 37 of file ucloc.h.

Referenced by increment_cur_line().

int Uc_location::num_errors [static, private]

Definition at line 38 of file ucloc.h.

Referenced by get_num_errors().

char* Uc_location::source [private]

Definition at line 39 of file ucloc.h.

Referenced by get_source().

int Uc_location::line [private]

Definition at line 40 of file ucloc.h.

Referenced by get_line().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:04:45 2007 for ExultEngine by  doxygen 1.5.1