An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# CoolCompiler [![CodeQL](https://github.com/laolarou726/CoolCompiler/actions/workflows/codeql.yml/badge.svg)](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)"

```