4 ms·
I built a programming language. I was inexperienced, winging everything, but I wrote the parser, interpreter, runner and virtual machine. Then I tried to make i
by dested 10y ago
I built a programming language. I was inexperienced, winging everything, but I wrote the parser, interpreter, runner and virtual machine. Then I tried to make it as fast as possible. This accelerated my learning more than almost any other project I've worked on, and taught me things about profiling and optimization that I use in my career every day. I hit nearly every aspect of development in one fell swoop, and I look back on that time quite fondly.
- crimsonalucard 10y agoAre there any resources that you could recommend for someone else who's just starting out and wants to tread the same path?
- ndh2 10y agoI don't think there's going to be a book for "winging everything". Just do it!
- dested 10y agoWhat ndh2 said. Don't try to follow a tutorial on how to do it, just do it. If you know how to use substring and indexOf in your preferred language you can write a parser. If you know how to use switch case you can write a virtual machine. Boil it down to the most basic parts and just keep going. It may be daunting at first, but its not magic ;-)
- stockkid 10y agoWould you care to share the source code, if it is hosted publicly? I've been building a programing language as a side project and I'd like to draw some lessons from others.
- dested 10y agoThe code is so gross and not runnable at this point that I wouldn't feel comfortable posting it. I can share the source with you though if you'd like. It's all c#. dested at gmail