uhmanoa-transpiler-project / shaka-scheme

The official repository for the UH Manoa Transpiler Project's Scheme interpreter, Shaka Scheme.
32 stars 24 forks source link

Implement `syntax-rules` macro system. #31

Open CinchBlue opened 6 years ago

CinchBlue commented 6 years ago

I cannot implement syntax-case. But I can do syntax-rules macros!

CinchBlue commented 6 years ago

Syntax-rules macros are being implemented without syntax objects, it appears. Instead, we are using a MacroContext to keep track of lexical information and keep track of sets of scopes so that the information for macros need only exist at macro-expansion time. This may need to change later once we start implementing debugging functionality, but we can consider this later.