https://github.com/ivangalbans/cool
Cool Programming Language
https://github.com/ivangalbans/cool
antlr4 compiler-construction cool-compiler cool-language csharp
Last synced: 5 months ago
JSON representation
Cool Programming Language
- Host: GitHub
- URL: https://github.com/ivangalbans/cool
- Owner: ivangalbans
- License: mit
- Archived: true
- Created: 2018-07-08T07:04:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-09T19:40:05.000Z (over 5 years ago)
- Last Synced: 2025-03-22T20:46:27.669Z (7 months ago)
- Topics: antlr4, compiler-construction, cool-compiler, cool-language, csharp
- Language: Cool
- Homepage: https://theory.stanford.edu/~aiken/software/cool/cool-manual.pdf
- Size: 747 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Cool Compiler
=============This project is a compiler of the Cool (view [*The Cool Reference Manual*](https://theory.stanford.edu/~aiken/software/cool/cool-manual.pdf)) language programming
Project structure
-----------------This project is a Visual Studio Solution with one **C# 4.7.1** project.
Lexer and Parsing
-----------------We use the parser generator **ANTLR 4.7.1**.
Semantics
---------Use of the visitor pattern to travel around the Abstract Syntax Tree AST.
Optimization Code
-----------------Developing...
Code Generation
---------------At the first Three Address Code (TAC) is generated and after MIPS code is generated too.
Unit Testing
------------The project contains some unit testing for Lexer, Parsing, Semantics and Topological Sort algorithm. The test cases for each unit testing are in the folder TestCases.
Collaboration
-------------Fork, fix, and submit a pull request; or submit an issue. Valuable contributions
from anybody are good received.Authors
-------Two students of 4th year of Computer Science at the University of Havana:
Iván Galbán Smith
Yanoel Llano Boitel