4 ms·
Quoting from the red docs: So, in short, what is Parse? It is an embedded DSL (we call them "dialects" in the Rebol world) for parsing input series usi
by macmac 9y ago
Quoting from the red docs:
So, in short, what is Parse? It is an embedded DSL (we
call them "dialects" in the Rebol world) for parsing
input series using grammar rules.
- dominotw 9y agoIts different from antlr and co in the sense that there is no code generation step?
- macmac 9y agoBecause parse is a embedded DSL you have access to all of rebol/red which lets you easily generate/interpret code. As an example here is a BF interpreter: https://gist.github.com/dockimbel/7713170 https://gist.github.com/dockimbel/7713170
- greggirwin 9y agoCorrect. The grammar is interpreted directly.