All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class espresso.Espresso

java.lang.Object
   |
   +----espresso.Espresso

public class Espresso
extends Object

Variable Index

 o currentClass_d
Keep the name of the type that is being compiled.
 o errors_d
A string vector that collects errors from the various compilation phases: parsing, type checking, etc.
 o fileName_d
Keep the name of the source file that is being compiled.
 o importMgr_d
A reference to the symbol table.
 o instance_d
A static reference to the main object.
 o parser_d
A reference to a JavaParser object.
 o root_d
A pointer to the AST root node.
 o symbolTable_d
A reference to the symbol table.
 o TABLE_SIZE
Initial size of the symbol table.

Constructor Index

 o Espresso()
The only constructor.

Method Index

 o currentClass()
 o currentClass(Symbol)
 o currentPackage()
 o defineInitEnv()
Define entries in the symbol table for all the primops.
 o errors()
 o execute(String[])
Espresso's main loop.
 o fileName()
 o importMgr()
 o internalError()
Aborts the execution of the compiler as a result of an unrecoverable error.
 o main(String[])
Entry point.
 o notYetImplemented()
Aborts the execution of the compiler if something found in the source file can't be compiled.
 o printErrors()
 o symbolTable()

Variables

 o TABLE_SIZE
 static final int TABLE_SIZE
Initial size of the symbol table. Other interesing primes are 211, 307, 401, 503, 601, 701, 809, 907.

 o errors_d
 Vector errors_d
A string vector that collects errors from the various compilation phases: parsing, type checking, etc.

 o parser_d
 JavaParser parser_d
A reference to a JavaParser object.

 o symbolTable_d
 SymbolTable symbolTable_d
A reference to the symbol table.

 o importMgr_d
 JavaImportManager importMgr_d
A reference to the symbol table.

 o root_d
 CompilationUnitNode root_d
A pointer to the AST root node.

 o currentClass_d
 Symbol currentClass_d
Keep the name of the type that is being compiled.

 o fileName_d
 String fileName_d
Keep the name of the source file that is being compiled.

 o instance_d
 static Espresso instance_d
A static reference to the main object.

Constructors

 o Espresso
 public Espresso()
The only constructor.

Methods

 o defineInitEnv
 private void defineInitEnv()
Define entries in the symbol table for all the primops. This entries will be used by the type checker. The entries in the symbol table must be sorted from the widest type (e.g, double) to the narrowest (e.g, int).

 o execute
 public void execute(String args[])
Espresso's main loop.

 o internalError
 public static void internalError()
Aborts the execution of the compiler as a result of an unrecoverable error.

 o notYetImplemented
 public static void notYetImplemented()
Aborts the execution of the compiler if something found in the source file can't be compiled.

 o printErrors
 private void printErrors()
 o errors
 public static Vector errors()
 o symbolTable
 public static SymbolTable symbolTable()
 o fileName
 public static String fileName()
 o importMgr
 public static JavaImportManager importMgr()
 o currentPackage
 public static Symbol currentPackage()
 o currentClass
 public static void currentClass(Symbol name)
 o currentClass
 public static Symbol currentClass()
 o main
 public static void main(String args[])
Entry point.


All Packages  Class Hierarchy  This Package  Previous  Next  Index