kawa.lang
public class PatternScope extends LetExp
syntax-case
/syntax-rules
pattern.
Field Summary | |
---|---|
Declaration | matchArray |
StringBuffer | patternNesting Nesting of currently visible macro pattern names.
|
Vector | pattern_names Currently visible macro pattern names.
|
Constructor Summary | |
---|---|
PatternScope() |
Method Summary | |
---|---|
static void | pop(Translator tr) |
static PatternScope | push(Translator tr) |
i
'th pattern variable,
(int) patternNesting.charAt(i)/2
is the nesting (in terms of
number of ellipsis that indicate the variable is repeated).
The low-order bit indicates that if matched value is the car
of the value saved in the vars
array.