On Mon, Apr 29, 2013 at 2:12 PM, Tomás Coiro <tomco...@hotmail.com> wrote: > Thanks for that Danny :) > I'll try to do that. > > Although I think that readtables documentations aren't understandable. > I mean, searching on Google I can find 3 or 4 questions about them and no > one seems to understand them.
I'm pretty sure someone has to understand them on this list... :P Here are some entries on Stack Overflow that may help: http://stackoverflow.com/questions/12647321/how-to-read-in-this/12647554#12647554 http://stackoverflow.com/questions/8289825/racket-reader-macros/8290319#8290319 http://stackoverflow.com/questions/15738901/how-can-i-make-a-racket-reader-macro-to-transform-any-instance-of-one-character For your situation, if you're making your own language, you've got to make sure that the dynamic extent in which you're customizing the reader is wrapping around the use of read or read-syntax that's being done when your programs are being parsed. If you can point us to code that you've tried, that may help to identify what went wrong in the first place. In terms of something like the BF tutorial, it would be somewhere around here: http://hashcollision.org/brainfudge/#(part._.Crossing_the_wires) at the point where we tell Racket how to read our program into syntax. You've got to make sure the module reader you've coded up will is running read and read-syntax under your customized reader at this point, as the program is being read: otherwise, your customized reader comes too late: the program's already been read and parsed. ____________________ Racket Users list: http://lists.racket-lang.org/users