Re: [racket] Compiler for despair 1

2014-11-08 Thread Gustavo Massaccesi
I'd like to propose a stronger challenge. Try to write this compiler following the style guide in http://docs.racket-lang.org/style/Textual_Matters.html . In the current implementation, some of the indentation is not standard and the functions and variables names should be longer. The code is diff

Re: [racket] Compiler for despair 1

2014-11-03 Thread Gustavo Massaccesi
Do you have a link to a complete reference of this language? I couldn't find it with Google. Some ideas to gain a few lines: ** Replace the ":" operator with "#%app" (http://docs.racket-lang.org/reference/application.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._~23~25app%29%29 ) I

[racket] Compiler for despair 1

2014-10-31 Thread Eduardo Costa
I tried to implement despair 1 in Racket, and have a few questions about my solution. By the way, I am not a student trying to get my homework done by somebody else. The restrictions for despair 1 are: 1 - The whole implementation must have less than 100 lines. Comments and tests don't count as l