racket-peg
racket-peg copied to clipboard
Implement a extension of PEG
https://www.youtube.com/watch?v=4QrZxfgZFDg
This is a very future function.
With this, will be possible to parse declaratively and easyly all of C, python and other syntax-ambiguous languages.
Good video.
I think we may be able to implement this without a symbol table, just having a way to use the result of an earlier match as a string to match maybe.
Why don't use a parameter that is a list of hash or something like this? (If we use a hash purely, don't will be possible to manage the block directive