-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added usage section
- Loading branch information
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# A Basic Compiler For Pseudocode | ||
|
||
My implementation of a fully functional compiler to make the IGCSE / A Level Computer Science language Pseuedocode executable on any machine. The compiler consists of a hand-built lexer, parser and code generator (glossing over details for brevity). Code generation creates valid Python code for users to study and find relationships between pseudocode and Python. | ||
My implementation of a fully functional compiler to make the IGCSE / A Level Computer Science language Pseuedocode executable on any machine. The compiler consists of a hand-built lexer, parser and code generator. Code generation creates valid Python code for users to study and find relationships between pseudocode and Python. | ||
|
||
Should this project succeed, I hope it can help people who really struggled to learn the pseudocode syntax like I did. | ||
I hope it can help people who really struggled to learn the pseudocode syntax like I did. | ||
|
||
## Usage | ||
1. Download binary for either Linux or Windows | ||
2. Run using command ./ppc \[your_file.pcode] | ||
3. Output file will be your_file.py | ||
4. (Optional) Add downloaded binary to your path if you want to run ppc from anywhere | ||
|
||
Example pseudocode files can be found in the data folder. Have fun and try writing your own! |