feersum icon indicating copy to clipboard operation
feersum copied to clipboard

Macro Woes Tracking Issue

Open iwillspeak opened this issue 4 years ago • 1 comments

The current syntax-rules implementation generally works, but leaves a little to be desired. Namely:

  • [ ] No support for quoting of the ellipsis character (... ...)
  • [ ] Matching of patterns with ... and . should be greedier with the repeat? Not sure about this one.
  • [ ] What if the ellipsis is also a literal identifier?
  • [ ] Macro hygiene
    • [ ] Identifier hygiene
    • [ ] Scope hygiene
  • [x] Missing location on expanded templates.
  • [ ] Substitutions inside quoted templates.
  • [ ] Vector patterns and templates (#(<pattern>+)).
  • [ ] Macros are not included in compiled libraries.
  • [ ] Re-export of macro items.

iwillspeak avatar Dec 23 '20 16:12 iwillspeak

Another thing here is we parse templates and patterns with the same code. Templates can have arbitrary repeats. Patterns only one per form.

iwillspeak avatar Oct 24 '21 12:10 iwillspeak