Show HN: PyCParser, C parser and interpreter in Python
github.com
github.com
The alternate capitalization makes no difference to a search engine.
pycparser doesn't do anything about interpreting C, it ends its job at creating the AST.
By the way, pycparser has no external dependencies. It uses PLY but vendors it. I had to port it to Python 3 before PLY did itself, and stuck to the vendoring because it's so convenient.
It'll be a neat milestone once it's complete enough to interpret Cython. :)
Incidentally, this ease (such as string concatenation with '+') also makes it easy to unknowingly/accidentally create a quadratic or higher complexity algorithm.
I'm curious what language you would consider optimal for writing a parser in?
I've been researching that question, and was hoping someone would reply and point me in a useful direction.
I don't know how standards-compliant it is, because I just quickly skimmed over the code, but fortunately the correct algorithm has been documented:
The project looks kinda cool. I wonder if I could hack it for "real time feedback" of c code in Eclipse some how.
That's what this does. No one said anything about your second point.