This is an interpreter implemented in Go for a simple BASIC-like language called Lao. This was created as part of a programming languages course.
This is implemented in the following simple parts:
- Tokenizer - turns stream of characters into recognizable tokens
- Parser - Parser turns the tokens into an AST
- Interpreter - Takes in an AST and runs the program.
In order to install and run a sample program:
go get github.com/vectorhacker/lao
go install github.com/vectorhacker/lao
lao <path_to_program>
The Lao language is incomplete as a language. It is missing simple jumps and loops. It also lacks a repl.
- Repl
Goto statementLabel statement