+ 3

How to make a programming language?

Any resources for making a programming language.

13th Feb 2018, 5:46 PM
Shardul Nalegave
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
13th Feb 2018, 6:20 PM
Vlad Serbu
Vlad Serbu - avatar
+ 4
Interesting. Check this out: https://youtu.be/yKyOWBkf3io
13th Feb 2018, 5:48 PM
777
777 - avatar
+ 4
thanks
13th Feb 2018, 5:50 PM
Shardul Nalegave
+ 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.
13th Feb 2018, 6:06 PM
Vlad Serbu
Vlad Serbu - avatar
+ 2
that was a great answer but I was looking for some tutorials or guides
13th Feb 2018, 6:09 PM
Shardul Nalegave
+ 2
thanks Vlad that was the answer I was looking for
13th Feb 2018, 6:53 PM
Shardul Nalegave