| ▲ | true_religion 3 hours ago | |
I wrote a few of these due to an interest in compilers and hardware. The easiest syntax to copy if you’re looking for a high level language is Smalltalk. But most of the time, I wouldn’t even use that. Simple imperative languages that look like BASIC works pretty well in most domains. If you simplify the syntax a little, it’s very easy to understand the compiler and use it for say when you want users to input code into existing systems. | ||
| ▲ | sieve 2 hours ago | parent [-] | |
I have written compilers for two families over the years: C and ML. My current preference is Python. I am currently working on a statically typed language that is inspired by Python (minus objects and OOP) that runs on a register VM. Syntax is a minor issue but something that people are very opinionated about. You could technically build multiple front ends that share the typechecking, CFG validation, optimization, register allocation and byte code emission phases. But it is too much work for what is presently a personal project. | ||