gnu.expr

Class 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
static Stringgentemp()
Generate a new (interned) symbol with a unique name.
static Stringintern(String name)
static Stringmake(String name)
Create or find a Symbol with a given name.
static voidprint(String name, Consumer out)

Method Detail

gentemp

public static final String gentemp()
Generate a new (interned) symbol with a unique name.

Returns: the new symbol

intern

public static final String intern(String name)

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

print

public static void print(String name, Consumer out)