kawa.lang
Class Quote
- Named, Printable
The Syntax transformer that re-writes the "quote" "quasiquote" primitive.
In both cases recursively resolves SyntaxForm wrappers and resolves
namespaces of symbols. In the case of quasiquote also handles unquoting.
Quote(String name, boolean isQuasi)
|
QUOTE_DEPTH
protected static final int QUOTE_DEPTH
An initial value for 'depth' for plain (non-quasi) quote.
isQuasi
protected boolean isQuasi
True for quasiquote; false for plain quote.
plainQuote
public static final Quote plainQuote
quasiQuote
public static final Quote quasiQuote
Quote
public Quote(String name,
boolean isQuasi)
append$V
public static Object append$V(Object[] args)
Same as regular append, but handle SyntaxForm wrappers.
consX$V
public static Object consX$V(Object[] args)
A wrapper around LList.consX to make it a "variable-arg method".
expand
protected Object expand(Object template,
int depth,
Translator tr)
expandColonForms
protected boolean expandColonForms()
quote
public static Object quote(Object obj)
Quote an object (without namespace-expansion).
Basically just recursively removes SyntaxForm wrappers.
quote
public static Object quote(Object obj,
Translator tr)
Quote an object (without namespace-expansion).
Basically just recursively removes SyntaxForm wrappers.