Package net.hydromatic.morel.util
Class Unifiers.Dumper
java.lang.Object
net.hydromatic.morel.util.Unifiers.Dumper
- Enclosing class:
Unifiers
Work space for
Unifiers.dump(PrintWriter, Iterable).-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final PrintWriter(package private) final Map<Unifier.Term, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voiddumpAll(Iterable<? extends Unifier.TermTerm> pairs) (package private) Stringlookup(Unifier.Term term) Looks up the variable holding a term, registering it if new.private Stringregister(Unifier.Term term) Registers a term and returns a unique variable name for it.(package private) StringRegisters a variable name, ensuring that it is valid and unique.
-
Field Details
-
terms
-
names
-
pw
-
-
Constructor Details
-
Dumper
Dumper(PrintWriter pw)
-
-
Method Details
-
dumpAll
-
var
Registers a variable name, ensuring that it is valid and unique. -
lookup
Looks up the variable holding a term, registering it if new. -
register
Registers a term and returns a unique variable name for it.
-