Learning By Doing - my own programming language to learn how to write a compiler toolchain. Follow my progress at https://blog.benchr.me/tags/compiler/
Go
Permalink
Failed to load latest commit information.
example
lexer
parser
repl
.gitignore
.travis.yml
LICENSE
README.md
main.go

README.md

lbd - Learning By Doing Build Status Go Report Card Coverage Status

In the year 2017 I started to challenge myself by creating an own programming language to get more familiar with the whole topic of compilers and interpreters. Aim is not to create a new programming language that should be hyped and that does anything better than existing languages. It is my goal to learn something by creating this project.

Another challenge for me is to write one blog post a week; so creating this project is also a very important there. If you want to keep track about my thoughts during the progress of coding, check out the tag 'compiler' at my blog: LINK.

Check out all the other stuff at this LINK.

To get a feeling for the language, here is a first draft of the MVP:

add = (a int, b int) -> int {
	return a + b
}

mul = (x int, y int) -> int {
	return x * y
}

a = 5
b = 4
c = add(a, b)
d = mul(a, b)

Thanks!