Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiink/peanut-compiler
Compiler project for CPSC 323-03 of Fall 2023 with Choi
https://github.com/jiink/peanut-compiler
Last synced: 10 days ago
JSON representation
Compiler project for CPSC 323-03 of Fall 2023 with Choi
- Host: GitHub
- URL: https://github.com/jiink/peanut-compiler
- Owner: jiink
- License: gpl-3.0
- Created: 2023-08-31T22:50:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-30T05:24:34.000Z (12 months ago)
- Last Synced: 2023-12-01T21:41:20.010Z (12 months ago)
- Language: Go
- Homepage:
- Size: 1020 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Peanut Compiler
This is our compiler project for CPSC 323-03 of Fall 2023 with Choi. By the end of the semester, this should be able to compile Rat23F programs.
It's called the Peanut Compiler because both rats and gophers can eat peanuts.
## Current state
Assignment 3 - object code generation
## Quick start development
### Windows
1. Download and install Go from https://go.dev/dl/
1. Clone the repository
1. Edit code (the _.go_ files) in src\
1. Use the command `go run .` to run/debug the project.
- You will likely need to provide a file as an argument, for example `go run . "tests\test.rat"`### Building an exe
1. In the command prompt, navigate to the _src_ directory.
1. Run `go build .`
1. Observe the creation of _peanut-compiler.exe_## Resources
Learning Go: https://go.dev/tour/list
Lexical Scanning in Go: https://go.dev/talks/2011/lex.slide#1