ShivamSarodia/ShivyC
View on GitHub ↗ ★ 1,071 Python
C compiler created in Python.
5 mentions on Hacker News by 4 people: 1 story, 4 comments · first 2018-03-30 · latest 2018-04-24
20082026
-
(self-promotion) I've created an open source C compiler written in Python ( https://github.com/ShivamSarodia/ShivyC ). I've learned a ton building it out so far, and I've found compiler design to be a great exercise in software engineering…
comment by ssarodia · 2018-04-24 · in Ask HN: Python Open Source Projects for someone learning it after Java/Scala -
It looks like that's what it is doing: https://github.com/ShivamSarodia/ShivyC/blob/156a71bce7f340d... The exceptions seem to be how it signals failure if the token doesn't match, but they aren't being used for unbounded lookahead.
comment by pebers · 2018-03-31 · in Show HN: ShivyC – Hobby C compiler created in Python -
…it for developer on Github[0] Or you know how to fix it? Then just pull[1] it to 'master' ;-) [0] https://github.com/ShivamSarodia/ShivyC/issues [1] https://github.com/ShivamSarodia/ShivyC/pulls
comment by app4soft · 2018-03-31 · in Show HN: ShivyC – Hobby C compiler created in Python -
The parser has a somewhat unusual structure: https://github.com/ShivamSarodia/ShivyC/blob/master/shivyc/p... It's been a while since I've had to use the phrase "exception-oriented programming", but it fits that code well. While that might…
comment by userbinator · 2018-03-30 · in Show HN: ShivyC – Hobby C compiler created in Python