Compiler written in Golang to learn about the concepts. This is based on the book called 'Writing a Compiler in Go' by Thorsten Ball. Starting from what the book offers, additional data types and features has been added.
This an experimental language, use at your own risk. Language features and syntaxes are subject to change.
$ go get github.com/dreblang/core/cmd/drebli
$ drebli
$ go get github.com/dreblang/core/cmd/dreblc
$ dreblc <file>.dreb
Use sample.dreb for code reference. No documentation is available as of now.
Contact me for any queries.
- Basic Types - int, float, bool, string, null
- Advanced Types - Array, Hash
- Callables - Closure, Member & Built-in Functions
- if (else), loop, scope, fn
- Supports recursion
Basic arithmatic and comparision operators.