How do I create my own programming language?
Start with a waifu
>>59392146
First you gotta come up with a name and a logo.
Choose a low level language to make your language in. Many are made in C. If you want something that's at the level of C, I think you'll have to do it in assembly.
>>59392146
Just take Java and add and remove a couple of features.
That's what everyone else is doing.
>>59392146
1. Write a very simple parser and a very simple AST evaluator.
2. Modify them, adding features until the language is good enough to write simple programs in.
3. Optionally, write an AST analyzer to check for blisteringly stupid mistakes before actually running a program.
4. If you did 3, write some optimization passes that rewrite your language constructs into ones that require less time to execute.
5. If you did 3 or 4, modify the AST evaluator so that instead of actually evaluating the code, it prints out an instruction in a lower-level language that would accomplish the same thing.
If you did 5, you now have a compiler. If not, you at least have an interpreter. Go write some programs in your language.
Dragon book m9