racket-peg icon indicating copy to clipboard operation
racket-peg copied to clipboard

Implement a extension of PEG

Open petrolifero opened this issue 7 years ago • 2 comments

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.

petrolifero avatar Nov 30 '18 12:11 petrolifero

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.

rain-1 avatar Nov 30 '18 14:11 rain-1

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

petrolifero avatar Nov 30 '18 14:11 petrolifero