albertz/PyCParser
View on GitHub ↗ ★ 363 Python
C parser and interpreter written in Python with automatic ctypes interface generation
6 mentions on Hacker News by 1 person: 1 story, 5 comments · first 2012-03-23 · latest 2026-06-29
20082026
-
…a fun side-project of mine (C parser + C interpreter in Python) can do a very similar thing: https://github.com/albertz/PyCParser/blob/master/demos/disse...
comment by albertzeyer · 2026-06-29 · in Dissecting Apple's Sparse Image Format (ASIF) -
A funny anecdote: Some time ago, I was writing a C-to-Python translator. (Why? Just for fun, https://github.com/albertz/PyCParser , even more just-for-fun goal was this: https://github.com/albertz/PyCPython ). It literally would translate…
comment by albertzeyer · 2024-01-03 · in 30 Years of Decompilation and the Unsolved Structuring Problem: Part 1 -
…some more loops. The current solution is simple but the resulting function could be slow. https://github.com/albertz/PyCParser/blob/080a7b0472444fd366...
comment by albertzeyer · 2020-02-24 · in Why does WebAssembly need the relooper algorithm, instead of gotos? (2019) -
I once wrote a C parser in Python by hand. Maybe the code is interesting to you: https://github.com/albertz/PyCParser
comment by albertzeyer · 2012-08-05 · in NASA JPL C Coding Standard [pdf] -
I once wrote a C parser & interpreter in Python. :) https://github.com/albertz/PyCParser
comment by albertzeyer · 2012-03-23 · in You used Python for what?