https://github.com/laolarou726/coolcompiler
Stanford CS1/CS143 Compilers Course Project for COOL (Classroom Object-Oriented Language) in C++ using LLVM backend
https://github.com/laolarou726/coolcompiler
ast code-generation compiler cool cpp lexer llvm llvm-ir parser parsers semantic stanford
Last synced: 11 months ago
JSON representation
Stanford CS1/CS143 Compilers Course Project for COOL (Classroom Object-Oriented Language) in C++ using LLVM backend
- Host: GitHub
- URL: https://github.com/laolarou726/coolcompiler
- Owner: laolarou726
- Created: 2022-09-15T05:18:17.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-27T08:00:16.000Z (over 3 years ago)
- Last Synced: 2023-03-10T15:14:45.804Z (about 3 years ago)
- Topics: ast, code-generation, compiler, cool, cpp, lexer, llvm, llvm-ir, parser, parsers, semantic, stanford
- Language: C++
- Homepage:
- Size: 253 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CoolCompiler [](https://github.com/laolarou726/CoolCompiler/actions/workflows/codeql.yml)
Stanford CS1/CS143 Compilers Course Project - Cool compiler with LLVM backend
## Development Status
|Component|Status|
|:---------------:|:-------:|
| Lexer | ✅ |
| Parser | ✅ |
|Semantic Analysis| ✅ |
| Optimization | Skipped |
|Code Generation | WIP |
## Setup
### Tested Environment
- Ubuntu: 22.04
- LLVM: 15.0.2
- Zlib: 1.2.11
### Install Zlib
```bash
sudo apt-get install zlib1g-dev
```
### Install LLVM
```bash
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
```