3 ms·
Nice timing. Last week I made a very simple BASIC compiler to show my undergrad students how to make a compiler: https://github.com/AZHenley/teenytinycompiler h
by azhenley 7y ago
Nice timing. Last week I made a very simple BASIC compiler to show my undergrad students how to make a compiler: https://github.com/AZHenley/teenytinycompiler https://github.com/AZHenley/teenytinycompiler
The write-up is coming in a few days.
- WoodenChair 7y agoIt's a great assignment. We do almost the same exact assignment in my Emerging Languages class (the grammar is almost identical). We write an interpreter for a version of TinyBASIC called NanoBASIC in Swift.
- azhenley 7y agoNice! Yep, I started with the Tiny BASIC grammar but modified it to look a bit more modern and to be easy to extend for more complex expressions.