DEV Community

Discussion on: Have you ever designed your own language?

Collapse
 
ohffs profile image
ohffs

Before I had a computer (back into 1970's) I would write 'programs' in a paper notebook in a language I had made up based on a programming book I found in the local library (ah, the olden days).

Then in the late 80's/early 90's I made an actual language & compiler that was a kind of 'BASIC meets PASCAL'. It had some nice features for games programmers - but sadly the platform I was on at the time (Atari) disappeared from under me so I never really developed it beyond the initial compiler and prototypes.

It's main selling point was (was going to be!) that it could spot patterns in blocks of code, and swap them out with more efficient ones if it could. So you could have a library of your own custom hand-written ASM animation routines or whatever and if the compiler saw you were 'move all the sprites to the left' it would swap in your custom ASM code.

Oh, to be that young and enthusiastic again ;-)