Go Interpreter
Overview
This project is an interpreter written in Go, based on the book Writing An Interpreter in Go by Thorsten Ball. I've chosen this project to further refine understanding of Go as a language and learn more about interpreters/parsing along the way.
The interpreter is implemented for the "Monkey Programming Language", a language that has been made up specifically for the purposes of this project. More info on the language here.
Features
- Fast Execution: Leverages Go's efficiency for quick interpretation.
- Cross-Platform Support: Runs on any platform that supports Go.
- Extensible Architecture: Easily add new features or expand language capabilities.
Getting Started
Prerequisites
Installation
Clone the repository:
git clone https://github.com/d-forbes/go-interpreter.git
cd go-interpreter
Building the Interpreter
Compile the interpreter using:
go build
Running the Interpreter
Execute your interpreter with:
./go-interpreter {script file}
Contributing
Contributions make the open-source community thrive. If you wish to contribute:
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
License
Distributed under the MIT License. See LICENSE file for more information.
David Forbes - @DavidWForbes
Acknowledgements
- Massive praise to @thorstenball and the amazing work he's done with his books