kawa.standard
Class define_unit
java.lang.Object
kawa.lang.Syntax
kawa.standard.define_unit
- All Implemented Interfaces:
- Named, Printable
public class define_unit
- extends Syntax
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
define_unit
public static final define_unit define_unit
define_base_unit
public static final define_unit define_base_unit
define_unit
public define_unit(boolean base)
scanForDefinitions
public boolean scanForDefinitions(Pair st,
java.util.Vector forms,
ScopeExp defs,
Translator tr)
- Description copied from class:
Syntax
- Check if a statement is a definition, for initial pass.
Semi-deprecated - should convert calls to use scanForm.
- Overrides:
scanForDefinitions
in class Syntax
- Parameters:
st
- the statement to checkforms
- where to append the (possibly-modified) statementdefs
- where to add Declarations for found definitionstr
- the compilation state
- Returns:
- true on success
rewriteForm
public Expression rewriteForm(Pair form,
Translator tr)
- Overrides:
rewriteForm
in class Syntax