3 ms·
He links to an awesome article: "A BNF PARSER IN FORTH" by Brad Rodriguez that "...first appeared in ACM SigFORTH Newsletter vol. 2 no. 2" https://www.bradrodri
by carapace 7y ago
He links to an awesome article: "A BNF PARSER IN FORTH" by Brad Rodriguez that "...first appeared in ACM SigFORTH Newsletter vol. 2 no. 2"
https://www.bradrodriguez.com/papers/bnfparse.htm https://www.bradrodriguez.com/papers/bnfparse.htm
Imagine getting your Forth firmware loaded with this in it, you can already do e.g. OMeta-style grammars because it's still Forth, so you can send your device a language description preamble and then just talk to it in whatever language you like, all in one stream.
( https://en.wikipedia.org/wiki/OMeta https://en.wikipedia.org/wiki/OMeta )
- swiley 7y agoFORTH is pretty awesome and I love stack machines. After my experiences with postscript (and being a web user like everyone else) allowing for recursion when you don’t really need it freaks me out a little.