jellyj
Class JellyJ


public class JellyJ


Field Summary
 (package private) SymbolcurrentClass_d
          Keep the name of the type that is being compiled.
 (package private) Vectorerrors_d
          A string vector that collects errors from the various compilation phases: parsing, type checking, etc.
 (package private) ExceptionStackexceptionStack_d
          A reference to the Exception stack, used for type checking thrown exceptions.
 (package private) StringfileName_d
          Keep the name of the source file that is being compiled.
 (package private) JellyJImportManagerimportMgr_d
          A reference to the symbol table.
 (package private) static JellyJinstance_d
          A static reference to the main object.
 (package private) JellyJParserparser_d
          A reference to a JellyJParser object.
 (package private) CompilationUnitNoderoot_d
          A pointer to the AST root node.
 (package private) SymbolTablesymbolTable_d
          A reference to the symbol table.
 (package private) final static intTABLE_SIZE
          Initial size of the symbol table.

Constructor Summary
JellyJ()
          The only constructor.

Method Summary
 static voidcurrentClass(Symbol name)
           
 static SymbolcurrentClass()
           
 static SymbolcurrentPackage()
           
 static Vectorerrors()
           
 static ExceptionStackexceptionStack()
           
 voidexecute(String[] args)
          JellyJ's main loop.
 static StringfileName()
           
 static JellyJImportManagerimportMgr()
           
 static voidinternalError()
          Aborts the execution of the compiler as a result of an unrecoverable error.
 static voidmain(String[] args)
          Entry point.
 static voidnotYetImplemented()
          Aborts the execution of the compiler if something found in the source file can't be compiled.
 static SymbolTablesymbolTable()
           

Field Detail

currentClass_d

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

errors_d

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

exceptionStack_d

ExceptionStack exceptionStack_d
A reference to the Exception stack, used for type checking thrown exceptions.

fileName_d

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

importMgr_d

JellyJImportManager importMgr_d
A reference to the symbol table.

instance_d

static JellyJ instance_d
A static reference to the main object.

parser_d

JellyJParser parser_d
A reference to a JellyJParser object.

root_d

CompilationUnitNode root_d
A pointer to the AST root node.

symbolTable_d

SymbolTable symbolTable_d
A reference to the symbol table.

TABLE_SIZE

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

JellyJ

public JellyJ()
The only constructor.
Method Detail

currentClass

public static void currentClass(Symbol name)

currentClass

public static Symbol currentClass()

currentPackage

public static Symbol currentPackage()

errors

public static Vector errors()

exceptionStack

public static ExceptionStack exceptionStack()

execute

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

fileName

public static String fileName()

importMgr

public static JellyJImportManager importMgr()

internalError

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

main

public static void main(String[] args)
Entry point.

notYetImplemented

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

symbolTable

public static SymbolTable symbolTable()

Association Links

to Class java.util.Vector

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

to Class jellyj.util.ExceptionStack

A reference to the Exception stack, used for type checking thrown exceptions.

to Class jellyj.parser.JellyJParser

A reference to a JellyJParser object.

to Class jellyj.util.SymbolTable

A reference to the symbol table.

to Class jellyj.parser.JellyJImportManager

A reference to the symbol table.

to Class jellyj.syntaxtree.CompilationUnitNode

A pointer to the AST root node.

to Class jellyj.util.Symbol

Keep the name of the type that is being compiled.

to Class java.lang.String

Keep the name of the source file that is being compiled.

to Class jellyj.JellyJ

A static reference to the main object.