https://github.com/corani/byopl
Build Your Own Programming Language implementation
https://github.com/corani/byopl
Last synced: 4 months ago
JSON representation
Build Your Own Programming Language implementation
- Host: GitHub
- URL: https://github.com/corani/byopl
- Owner: corani
- Created: 2024-10-22T02:22:43.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-10-24T09:44:04.000Z (8 months ago)
- Last Synced: 2024-10-25T05:11:40.638Z (8 months ago)
- Language: Java
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build Your Own Programming Language
Working through the book [Build Your Own Programming Language](https://www.packtpub.com/en-us/product/build-your-own-programming-language-9781800204805) by Cliniton L. Jeffery.
The official code repository for the book can be found [here](https://github.com/PacktPublishing/Build-Your-Own-Programming-Language).
Although it has been a decade since I last wrote any Java code, I'm trying to make it a bit easier
by using Maven to manage the project.## Usage
```bash
mvn clean package
mvn exec:java@j0
mvn exec:exec@dot
```> [!note]
> `jflex` is used to generate the lexer. The `pom.xml` file has a plugin to run jflex before the
> packaging. Since `byacc-j` is not available in the Maven repository (why would it?), I had to
> install it manually. On Ubuntu that's as easy as `sudo apt install byacc-j`.