kawa.standard
Class define_variable
java.lang.Object
kawa.lang.Syntax
kawa.standard.define_variable
- All Implemented Interfaces:
- Named, Printable
public class define_variable
- extends Syntax
"define-variable" is like define, but ignored if variable already bound.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
define_variable
public static final define_variable define_variable
define_variable
public define_variable()
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