https://github.com/xnul/pl-0-compiler
A PL/0 compiler and VM.
https://github.com/xnul/pl-0-compiler
Last synced: 7 months ago
JSON representation
A PL/0 compiler and VM.
- Host: GitHub
- URL: https://github.com/xnul/pl-0-compiler
- Owner: xNul
- License: mit
- Created: 2021-09-17T01:03:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-17T01:05:10.000Z (about 4 years ago)
- Last Synced: 2025-01-21T17:26:31.189Z (9 months ago)
- Language: C
- Homepage:
- Size: 111 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PL/0 Compiler Implementation
An implementation of a PL/0 compiler done throughout a course. It is divided into four different parts:
1. The Virtual Machine - Executes the given instructions.
2. The Lexer - Assigns tokens to the source code.
3. The Parser - Parses the token output by the Lexer into logical units of code.
4. The Code Generator - Takes the units of code from the Parser and translates them into instructions for the CPU.\#4 combines all previous parts together to compile the PL/0 code and execute it.