kawa.standard
Class define
java.lang.Object
kawa.lang.Syntax
kawa.standard.define
- All Implemented Interfaces:
- Named, Printable
public class define
- extends Syntax
- implements Printable
The Syntax transformer that re-writes the "%define" internal form.
This is used to implement define, define-private, and define-constant.
Syntax: (%define name code type value)
.
The name
is an identifier (String
or
Symbol
) or Declaration.
The code
is an integer mask,
where 1 means a function definition, 2 means type specified,
4 means private, and 8 means constant.
The type
is the declarated type or null
.
The value
is the initializing value. *
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defineRaw
public static final define defineRaw
define
public define(Lambda lambda)
scanForm
public void scanForm(Pair st,
ScopeExp defs,
Translator tr)
- Overrides:
scanForm
in class Syntax
rewriteForm
public Expression rewriteForm(Pair form,
Translator tr)
- Overrides:
rewriteForm
in class Syntax