Python-like programming language interpreter written in Python (github.com) 39 points by KAdot 10y ago ↗ HN
[–] acomjean 10y ago ↗ We had to write a scheme like language interpreter in scheme in grad school. I found it very meta, but interesting.Northeastern Prof Wand taught the class, a quick google reveals it was 3 book versions ago. Still teaching in Scheme though the book is 2009 (Racket).http://www.eopl3.comAnd the git source from the book (more useful with the book though...): https://github.com/mwand/eopl3
[–] fernly 10y ago ↗ Meta? You want meta? Try byterun [1], a full Python bytecode executor written in Python...[1] https://github.com/nedbat/byterun
[–] chrisshroba 10y ago ↗ Thanks so much for posting this, you've inspired me to try my hand at writing a similar parser. I'll definitely be using your code as reference as I go!
[–] rakibtg 10y ago ↗ Thanks, the lexer implementation helps me a lot for my compiler design course :-)
6 comments
[ 3.0 ms ] story [ 25.4 ms ] threadNortheastern Prof Wand taught the class, a quick google reveals it was 3 book versions ago. Still teaching in Scheme though the book is 2009 (Racket).
http://www.eopl3.com
And the git source from the book (more useful with the book though...): https://github.com/mwand/eopl3
[1] https://github.com/nedbat/byterun
inception reference