Hacker GitHub

← All repos

eliben/pycparser

View on GitHub ↗ ★ 3,579 Python

:snake: Complete C99 parser in pure Python

8 mentions on Hacker News by 5 people: 2 stories, 6 comments · first 2013-07-17 · latest 2022-10-14

Mentions per year 8 mentions · busiest year 2022 (3)
20082026
  1. https://github.com/eliben/pycparser
  2. …You can however work around most of them by -D defining them to empty macro in the argument. [0] https://github.com/eliben/pycparser
  3. …with writing and compiling the stub for every platform. This is why pycparser exists, for example. https://github.com/eliben/pycparser
  4. Here's a complete C frontend that uses the lex/yacc approach - https://github.com/eliben/pycparser (the Python ports of them, that is) FWIW, if I had to do this again today I would certainly go for hand-written recursive descent. lex/yacc…
  5. pycparser ( https://github.com/eliben/pycparser ) - a complete front-end for C99 in pure Python. Used in production by tools like cffi.
  6. …signs, floating point dots, type specifiers (U, L, etc.), and much more. For the gory details see: https://github.com/eliben/pycparser/blob/master/pycparser/c_... But in the end, it's all in the same token.