Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

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 )



FORTH 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: