pierrebaille
2018-9-8 11:27:22

hello, i would like to study the source code for ‘syntax-rules’ (i’m new to racket) where can I find it?


ben
2018-9-8 14:50:57

@pierrebaille (1) open drracket (2) write a tiny program using syntax-rules — it just has to run (3) right-click syntax-rules and click “open defining file”


soegaard2
2018-9-8 16:15:10

@pierrebaille If you are interested in the principles behind syntax-rules, then read Dybvig’s chapter in the book “Beatiful Code”. It isn’t exactly the same as in Racket, but I think reading the source of syntax-rules will be difficult, if you are new to Racket.


soegaard2
2018-9-8 16:16:01

soegaard2
2018-9-8 16:17:13

If you want background for the Racket expander, read http://www.cs.utah.edu/plt/scope-sets/


pierrebaille
2018-9-8 16:37:11

@soegaard2 @ben thank you!