PL0

Program of graduation level

This was a homework to create a compilers. In this work I used a lexical and semantic interpreter to implemented the compiler of the language that the teacher called of PL0. To compile the source codes it is necessary to put the directory "cmp" in the root of the disk, because compilers LEX and YACC seek this auxiliary files in the respective directories: "/Cmp/lex /ncform" and "/cmp/yacc/yaccpar". The compiler yacc needs to be executed through a DOS emulator, like DOSBox. The example files for the PL0 language are the files PROG01.PL0, PROG02.PL0, PROG03.PL0 and PROG04.PL0. To generate the respective assembler source files it is just necessary to call the executable "PL0_Compiler.exe" passing the name of the source file and the name of the target file to be generated. The generated files are compatible with common 8088 assemblers compilers.

Picture: Generation of code Assembler source from a PL0 file.

Download PL0 program
Information Content

Name

PL0

Implemented on

April 1992

Size

75Kb

Executable and source code

1992-04-PL0.zip

Language and compiler

Turbo C 3.0 Compiler