All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
   |
   +----epp.Token
           |
           +----epp.Symbol
Symbol class allows symbols of languages such as lisp to
be used in Java.
To use this class, the Symbol plug-in is required.
Symbol is an important data type that is used for many purposes
in EPP. The followin are examples of the usage of Symbol.
	Symbol x = :foo;
	Symbol y = :"foo";
	Symbol z = Symbol.intern("foo");
	System.out.println(x == :foo);	// true
	System.out.println(y == :foo);	// true
	System.out.println(z == :foo);	// true
In expressions, Symbols are expressed as a colon followed by an
identifier as in :foo.
The portion following the colon is called "the name of the Symbol".
Names with symbol characters and spaces can also be expressed by enclosing
the name of the Symbol with double quotes as in :"."
or :"long name".
Symbols can be compared using the == operator.
The result will be true if the name of the two Symbols match.
Symbols can also be used as keys of
java.util.Hashtable.  It is faster than using strings as keys.
The Symbol class is actually a subclass of class
Token, and is used as result values of the lexical analyzer.
Symbol is used for many purposes in the source code of EPP,
including the following.
MacroTable and
EmitterTable
 
 Symbol()
	Symbol()
   
 intern(String)
	intern(String)
  Symbol.
   isSymbol()
	isSymbol()
  Symbol and false otherwise.
   main(String[])
	main(String[])
   maybeIdentifier()
	maybeIdentifier()
   setMaybeIdentifierFlag()
	setMaybeIdentifierFlag()
   toString()
	toString()
  Symbol into a string.
 
 Symbol
Symbol
public Symbol()
 
 intern
intern
public static Symbol intern(String name)
Symbol.
 toString
toString
public String toString()
Symbol into a string.
 isSymbol
isSymbol
public boolean isSymbol()
Symbol and false otherwise.
 setMaybeIdentifierFlag
setMaybeIdentifierFlag
public void setMaybeIdentifierFlag()
 maybeIdentifier
maybeIdentifier
public boolean maybeIdentifier()
 main
main
public static void main(String argv[])
All Packages Class Hierarchy This Package Previous Next Index