5 ms·
Is it the general Scheme syntax-rules macros that you're struggling with? Or something unique to Racket? (which I haven't used) If it's the former, I found thi
by jim-jim-jim 7y ago
Is it the general Scheme syntax-rules macros that you're struggling with? Or something unique to Racket? (which I haven't used)
If it's the former, I found this little article helpful when I was new to Scheme:
http://www.willdonnelly.net/blog/scheme-syntax-rules/ http://www.willdonnelly.net/blog/scheme-syntax-rules/
- tgbugs 7y agoFor Racket specific macro tooling syntax-parse [0] in combination with syntax classes is usually the suggested starting point. Hygenic with pattern matching and a bunch of other features for parsing s-expression grammars. As mentioned down-thread Greg Hendershott's Fear of Macros [1] is a good starting point for a number of folks. The curriculum for Racket School 2018 [2] also has exercises that help introduce the syntax-parse tooling. 0. https://docs.racket-lang.org/syntax/Parsing_Syntax.html https://docs.racket-lang.org/syntax/Parsing_Syntax.html 1. https://www.greghendershott.com/fear-of-macros/ https://www.greghendershott.com/fear-of-macros/ 2. https://summer-school.racket-lang.org/2018/plan/ https://summer-school.racket-lang.org/2018/plan/
- xabush 7y agoThis is great tutorial. I used to be confused by the macros in scheme