Join the thousands of coders who created their own language.
Want to create a programming language.
How To Create Your Own Programming Language (Using Ruby and/or Java)
The book gives you open source Ruby code to play with as the foundation for a language, with the caveat that it's toy code, presented as teaching examples. It goes deep enough to explain the concepts in detail, and the book includes "Do It Yourself" challenges/exercises in extending the code, with answers at the back.
Make your own compiler for your own programming language.
If, however, you consider yourself a bit of a hotshot and want to really dig deep into building compilers and programming languages, the materials in CYOPL lack the detail and the frankly intimidating level of knowledge you'd need to really design and build a robust programming language.
“I never had a chance to study language internals at university, and while very interested, I found their inner workings intimidating. With this course I've found a simple but engaging introduction to the world of lexers, parsers, interpreters and compilers, and suddenly a whole new world in programming has opened up. Highly recommended.”