Skip to content

JohnathanSattler/tiny-PL-0-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tiny-PL/0 compiler

Compiling:

Compile compiler: make

Compile vm: gcc -o vm vm.c

Executing:

run compiler: ./compile (arguments) (input) (output)

run vm: ./vm (input)

Arguments:

  • --source Display input PL/0 code
  • --clean Display input PL/0 Code without comments
  • --tokens Display tokens found from lexer
  • --pm0 Display PM/0 code generated from parser

Examples:

Compiler: ./compile input.pl0 output.pm0

Compiler with arguments: ./compile --source --clean --tokens --pm0 input.pl0 output.pm0

Virtual Machine: ./vm output.pm0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published