How to create your own programming language

Recently I read about Google’s new open-source programming language called Go.

For more details check out

With so many programming languages to choose from such as C / C++, Python, and Java; Google developed Go with an intention for the language to be FAST, about a few seconds to build a large executable on a single computer!

During my programming days, I can still remember that it took so long to compile our program that I could go make myself a cup of coffee, come back and it’s still processing.

Of course these days, most languages support incremental compilers which have improved compiling times tremendously, especially with the help of faster and more efficient computer processors.

Here is a video made by Google Go’s team on the Go programming language:

Learn Go Programming - Golang Tutorial for Beginners

From the responses that I’ve read, some think that we have way too many languages to deal with already while some hard-core developers really enjoy the new programming styles, syntaxes, and benefits a new language brings.

If you’re a hardcore developer, have you ever thought of creating your very own programming language for your own usage as well as for others to benefit from?

Think about it! Once you’re done creating your own programming language, you could give it a really cool name like:

  • WarepriseScript 🙂
  • MySuperCoolScript 🙂
  • CoffeeScript (this is real!)
  • Phlower (this is also real!)

There are several reasons why people would want to create their own programming languages:

  • Fewer codes to read and write.
  • Improve and extend the capability of existing languages.
  • Impress your employer and peers with a resume that states: I created my own programming language!

Besides impressing others, the first point is particularly useful for developers who are in the business of developing their own applications.

With your own language, you can define how certain functions work to your liking. For example, which is better to look at?


Or this simple 2 liner of your very own code that translates to the above?

The scripts above are the outcome of CoffeeScript as developed by Jeremy Ashkenas.

If you too would like to be able to create your very own programming language, then I would highly recommend that you read this ebook – How to create your own programming language by Marc-André Cournoyer.

The eBook will walk you through the steps of language building.

Some of the key subjects which are covered include:

  • Lexer, with Python-style indentation
  • Parser, using Racc
  • Runtime, bootstrapping and self-hosting
  • Compilation using LLVM
  • and much more.

Once you’re on the, you can also download the full table of contents and a sample chapter.

Hey, if you do read the book and end up creating your very own programming language, feel free to share it with the rest of us here.

Till then, happy programming!

About the author

Hi! My name is Bob Lee and I’m a web developer / technical writer who specializes in developing and reviewing web applications.

As an entrepreneur, blogger, developer, and tech enthusiast, I have been in this field for more than 10 years, and have been loving every minute of it.

My daily productivity tool is ClickUp because it keeps me on track with time and deadlines.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.