Package gnu.expr
Class Symbols
- java.lang.Object
-
- gnu.expr.Symbols
-
public class Symbols extends Object
Utility class containing various routines to manipulate Scheme symbols. Note Scheme symbols are represented using java.lang.String objects, and there are no Symbol objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleSymbol
gentemp()
Generate a new (interned) symbol with a unique name.static String
intern(String name)
static String
make(String name)
Create or find a Symbol with a given name.
-
-
-
Method Detail
-
gentemp
public static final SimpleSymbol gentemp()
Generate a new (interned) symbol with a unique name.- Returns:
- the new symbol
-
make
public static String make(String name)
Create or find a Symbol with a given name.- Parameters:
name
- the print-name of the desired Symbol- Returns:
- a Symbol with the given name, newly created iff none such exist
-
-