Skip to content
This repository has been archived by the owner on May 28, 2020. It is now read-only.

ifduyue/pypl0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A python implemented PL/0 compiler
lyxint  <lyxint@gmail.com>

How to use
first you shoudl change directory to the source code directory pypl0, then the pypl0 is the executable file
1.GUI
    ./pypl0
2.CLI
    ./pypl0 option FILE
    use pypl0 -h get help
    
    Options:
      -h, --help            show this help message and exit
      -p PFILE, --parse=PFILE
                            parse file and print pcode
      -i IFILE, --interpreter=IFILE
                            parse file and interpreter pcode

Direcory Layout
-------------------------------------------------------------------------------------------
PyPL0                           ...... project root
|-- docs
|   |-- pl0-grammer-EBNF        ...... documents
|   `-- pl0-tokens
|-- LICENSE
|-- pl0 scripts                 ...... PL/0 source code for testing
|   |-- cockrabbit.pl0
|   |-- empty.pl0
|   |-- expression.pl0
|   |-- factorial.pl0
|   |-- gcd2.pl0
|   |-- gcd.pl0
|   |-- minimal.pl0
|   |-- prime.pl0
|   `-- square.pl0
|-- pypl0                        ...... source code
|   |-- backend
|   |   |-- ast.py
|   |   |-- __init__.py
|   |   |-- interpreter.py
|   |   |-- parser.py
|   |   `-- scanner.py
|   |-- gui
|   |   |-- gtkcodebuffer.py
|   |   |-- gui.py
|   |   `-- pl0.xml
|   `-- pypl0                    ...... executable file
|-- pypl0_.kpf
|-- README
|-- THANKS
`-- VERSION

5 directories, 26 files
-------------------------------------------------------------------------------------------

About

A python implemented PL/0 compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages