Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 593 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 593 Bytes

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