+ 3
How to make a programming language?
Any resources for making a programming language.
6 Answers
+ 4
Sorry, I'm more of a book guy, so I don't keep track of online guides and tutorials. But some good books to get you started are:
Programming Language Design Concepts by David A. Watt (2006) or Design Concepts in Programming Languages (2008)
Compilers: Principles Techniques and Tools, second edition (2006) aka The (Purple) Dragon Book
+ 4
Interesting.
Check this out: https://youtu.be/yKyOWBkf3io
+ 4
thanks
+ 3
Version 1:
Step 1: Design a language.
Step 2: Learn the assembly language for your target architecture.
Step 3: Build a compiler to translate the language into assembly (and then call an assembler to translate the assembly code into machine code).
Step 4: Build a second version of the compiler in your new language and use the first compiler to compile the second compiler.
Version 2:
Step 1: Design a language.
Step 2: Build an interpretor to dynamically execute your new language.
The second version is much easier. Either way, you should start building a compiler/interpretor for brainf*ck, and then move on to BASIC and other simple, primitive or ezoteric programming languages.
+ 2
that was a great answer but I was looking for some tutorials or guides
+ 2
thanks Vlad that was the answer I was looking for