| java.lang.Object kawa.lang.Syntax
All known Subclasses: gnu.commonlisp.lang.defvar, gnu.commonlisp.lang.setq, gnu.jemacs.lang.defcustom, gnu.jemacs.lang.While, gnu.kawa.lispexpr.DefineNamespace, kawa.lang.Lambda, gnu.commonlisp.lang.UnwindProtect, kawa.lang.Macro, gnu.commonlisp.lang.defun, gnu.jemacs.lang.defgroup, gnu.commonlisp.lang.function, gnu.commonlisp.lang.prog1, gnu.jemacs.lang.SaveExcursion, kawa.lang.Quote, kawa.lang.AutoloadSyntax,
Syntax | abstract public class Syntax implements Printable,Named(Code) | | Abstract class for "syntax" objects.
Builtins and macros are instances of this class.
author: Per Bothner |
rewrite | public Expression rewrite(Object obj, Translator tr)(Code) | | Re-write an expression that is an "application" of this Syntax object.
Parameters: obj - the arguments to this "application" (i.e. the cdr ofthe macro/builtin invokation) Parameters: tr - the Translator that provides context the re-written expression |
scanForDefinitions | public boolean scanForDefinitions(Pair st, java.util.Vector forms, ScopeExp defs, Translator tr)(Code) | | Check if a statement is a definition, for initial pass.
Semi-deprecated - should convert calls to use scanForm.
Parameters: st - the statement to check Parameters: forms - where to append the (possibly-modified) statement Parameters: defs - where to add Declarations for found definitions Parameters: tr - the compilation state true on success |
|
|