Polaris: Symbol.h File Reference

Symbol.h File Reference

Go to the source code of this file.

Enumerations

enum  SYMBOL_CLASS {
  UNDEFINED_CLASS = 0,
  PROGRAM_CLASS,
  FUNCTION_CLASS,
  SUBROUTINE_CLASS,
  VARIABLE_CLASS,
  SYMBOLIC_CONSTANT_CLASS,
  BLOCK_DATA_CLASS,
  NAMELIST_CLASS
}
 The SYMBOL_CLASS enumeration defines the possible types of Symbol's. More...
enum  EXTERNAL_BOOL {
  IS_EXTERNAL = 1,
  NOT_EXTERNAL = 0
}
enum  INTRINSIC_BOOL {
  IS_INTRINSIC = 1,
  NOT_INTRINSIC = 0
}
enum  INITIAL_BOOL {
  IS_INITIALIZED = 1,
  NOT_INITIALIZED = 0
}
enum  FORMAL_BOOL {
  IS_FORMAL = 1,
  NOT_FORMAL = 0
}
enum  ALLOC_BOOL {
  IS_ALLOCATABLE = 1,
  NOT_ALLOCATABLE = 0
}
enum  SAVED_BOOL {
  IS_SAVED = 1,
  NOT_SAVED = 0
}
enum  GLOBAL_BOOL {
  IS_GLOBAL = 1,
  NOT_GLOBAL = 0
}

Functions

Symbolmake_symbol (const char *name, const BinRep &binstr)
 Note: This function does NOT fill in the data fields properly-- it just gives them dummy values for now.
char * upcase_ch (const char *string)


Enumeration Type Documentation

enum SYMBOL_CLASS
 

The SYMBOL_CLASS enumeration defines the possible types of Symbol's.

Enumeration values:
UNDEFINED_CLASS 
PROGRAM_CLASS  A program unit starting with the PROGRAM statement.
FUNCTION_CLASS 
SUBROUTINE_CLASS 
VARIABLE_CLASS 
SYMBOLIC_CONSTANT_CLASS  i.e. defined in a parameter stmt
BLOCK_DATA_CLASS 
NAMELIST_CLASS  Note to programmer: If this enum is changed in any way, make sure to update the corresponding entries in the class_name[] array in Symbol.cc.

Definition at line 65 of file Symbol.h.

enum EXTERNAL_BOOL
 

Enumeration values:
IS_EXTERNAL 
NOT_EXTERNAL 

Definition at line 82 of file Symbol.h.

enum INTRINSIC_BOOL
 

Enumeration values:
IS_INTRINSIC 
NOT_INTRINSIC 

Definition at line 87 of file Symbol.h.

enum INITIAL_BOOL
 

Enumeration values:
IS_INITIALIZED 
NOT_INITIALIZED 

Definition at line 92 of file Symbol.h.

enum FORMAL_BOOL
 

Enumeration values:
IS_FORMAL 
NOT_FORMAL 

Definition at line 97 of file Symbol.h.

enum ALLOC_BOOL
 

Enumeration values:
IS_ALLOCATABLE 
NOT_ALLOCATABLE 

Definition at line 102 of file Symbol.h.

enum SAVED_BOOL
 

Enumeration values:
IS_SAVED 
NOT_SAVED 

Definition at line 107 of file Symbol.h.

enum GLOBAL_BOOL
 

Enumeration values:
IS_GLOBAL 
NOT_GLOBAL 

Definition at line 112 of file Symbol.h.


Function Documentation

Symbol* make_symbol const char *  name,
const BinRep binstr
 

Note: This function does NOT fill in the data fields properly-- it just gives them dummy values for now.

... Find out which kind of Symbol to make -- look at the "class" field

... Note: This could either be a SubroutineSymbol or FunctionSymbol ... If it has a "type" class, it's a FunctionSymbol, else it's ... a SubroutineSymbol

Definition at line 92 of file Symbol.cc.

References BinRep::is_set(), make_type(), NOT_EXTERNAL, NOT_FORMAL, NOT_INTRINSIC, NOT_SAVED, BinRep::to_string(), and UNDEFINED_TYPE.

Referenced by Symtab::Symtab().

char* upcase_ch const char *  string  ) 
 

... Returns a copy of a string with all characters converted to upper case

Definition at line 48 of file String.cc.

References alloc_str().

Referenced by String::index_case(), main(), Symbol::name(), string_type(), Symbol::Symbol(), and String::upcase().

 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:31 2005