3 ms·
"In a language with good metaprogramming facilities, the parser is written in the language; macros in Lisp-descendants, parser combinators in Haskell (itself pr
by j_baker 17y ago
"In a language with good metaprogramming facilities, the parser is written in the language; macros in Lisp-descendants, parser combinators in Haskell (itself probably about as flexible syntactically as you can get without actually having macros), whatever the hell Forth people call it, etc."
You mean like PyPy?
http://codespeak.net/pypy/dist/pypy/doc/ http://codespeak.net/pypy/dist/pypy/doc/
- gchpaco 17y agoIt's not inconceivable that PyPy could grow into some of what I'm talking about, although there's so much pushback from the Python community that I doubt it. However, as far as I can tell, PyPy doesn't have a parser generator written as part of normal Python code; it has a hand rolled recursive descent parser and a hand rolled lexer, which is not quite the same thing.