27Oct00
Procedural Macros for Java
Bachrach and Playford
Pattern Matching
•syntaxSwitch: like switch statement
–syntaxSwitch (?:expression) { rules:* }
•Rule:
–case ?pattern:codeQuote : ?:body
•Pattern:
–CodeQuote that looks like the construct to be matched
–Augmented by pattern variables which match and lexically bind to appropriate parts of the construct
•