4 ms·
If anyone is interested in seeing how the principles in the article can be used to implement a traditional language, I offer MiniPascal. https://github.com/soe
by soegaard 12y ago
If anyone is interested in seeing how the principles in the article can be used to implement a traditional language, I offer MiniPascal.
https://github.com/soegaard/minipascal https://github.com/soegaard/minipascal
The reader (lexer and parser) turns the source program into syntax objects. The main idea is to make a Racket macro for each Pascal construct. The Racket macro expands into normal Racket.
https://github.com/soegaard/minipascal/blob/master/minipascal/compiler-simple.rkt https://github.com/soegaard/minipascal/blob/master/minipasca...