3 ms·
Such a toy language isn't pointless. Everyone needs to implement a language, even a toy one. If one is working in C, one should learn assembly and implement a
by stcredzero 16y ago
Such a toy language isn't pointless. Everyone needs to implement a language, even a toy one. If one is working in C, one should learn assembly and implement a toy C-like language. This is really a necessity, so one has a working knowledge of what happens under the covers when they compile a program.
Such a freely available kit with a toy assembly language, a provided lexical analyser, and a toy grammar with no semantics would be a great boon to the programming community at large, especially if the project could be completed by the student in one weekend. Countless lightbulbs going off in programmer's heads all around the world would result.
The one day interpreter project should be done by everyone who wants to become uber-devs in a language like Python or Ruby.