kawa.lang
public class SyntaxForm extends Object implements Externalizable
| Field Summary | |
|---|---|
| Object | form |
| TemplateScope | scope |
| Method Summary | |
|---|---|
| static boolean | freeIdentifierEquals(SyntaxForm id1, SyntaxForm id2) |
| SyntaxForm | fromDatum(Object form) Make a SyntaxForm object with the same contextual information as this. |
| SyntaxForm | fromDatumIfNeeded(Object form) |
| boolean | isIdentifier() |
| static SyntaxForm | make(Object form, TemplateScope scope) |
| static Object | makeWithTemplate(Object template, Object form) Create a syntax object with specified form, and given syntatic context.
|
| void | readExternal(ObjectInput in) |
| static Expression | rewrite(Object x) |
| static Expression | rewriteBody(Object x) |
| String | toString() |
| void | writeExternal(ObjectOutput out) |
Parameters: form which used for the new syntax value.
Corresponds to the datum->syntax-object function.
Parameters: template If this is a SyntaxForm, use its scope; otherwise use the current Compilation's current scope. (This means just returning the form as-is.) form The value (S-expression form) to use.