Getting Started
Ra is a simple interpreted programming language, built in Go. It features its own lexer, parser, and evaluator, and is designed for learning and experimenting with language development (not for production use).
let hello = fn(name) {
puts("Hello, " + name + "!");
}
hello("World");
Prerequisites​
- Go 1.20+ installed
Installation​
Clone the repository:
git clone https://github.com/MikhailWahib/Ra.git
cd Ra
Usage​
Start the REPL:
go run ra.go
Run an example file:
go run ra.go examples/<example-name>.ra
Build​
Build the Ra interpreter:
go build -o bin/ra
Testing​
To run all tests:
go test ./...
To run a single test:
go test ./<package-dir-name>