https://github.com/thergh/jftt-compiler
Compiler for a procedural language. Translates a program to machine code that can be run using the provided virtual machine.
https://github.com/thergh/jftt-compiler
compiler compiler-design gebalang ina jftt kompilator pwr sly
Last synced: about 2 months ago
JSON representation
Compiler for a procedural language. Translates a program to machine code that can be run using the provided virtual machine.
- Host: GitHub
- URL: https://github.com/thergh/jftt-compiler
- Owner: thergh
- Created: 2024-11-20T15:59:53.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-26T23:09:43.000Z (3 months ago)
- Last Synced: 2025-02-27T00:20:57.537Z (3 months ago)
- Topics: compiler, compiler-design, gebalang, ina, jftt, kompilator, pwr, sly
- Language: Python
- Homepage:
- Size: 758 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Author: Łukasz Ciświcki
Program compiles a procedural language to machine code that can be run using a virtual machine.
### FILES
- **src/kompilator.py**: Compiler main file
- **src/generator.py**: Machine code generator for the compiler
- **src/table.py**: Symbol table for the compiler
- **src/lexer.py**: Lexer
- **src/table.py**: Parser### REQUIREMENTS
To run the compiler, **python 3.6** and **sly** library are required.
```
apt install python3
``````
pip3 install sly
```### USING THE COMPILER
To compile your code, put its path as an argument to the compiler.
```
python3 src/kompilator.py tests/exampleA.imp output/exampleA.mr
```