Skip to content

wbars/compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Pascal-like language to JVM bytecode compiler.

See usage in run.sh file

Main differences from classic Pascal:

  • No subrange bounds in array types (write just array of Integer)
  • Array literals {1,2,3}
  • new_array(size: Integer; type: Type) for allocating empty array with size
  • array_push(index: Integer; value: T, arrayReference: Array) instead of assignment by index

Disclaimer: since this project was made only for self-learning and from curiosity there is very basic Pascal features support and some of these can be suddenly disabled (like comments).

About

Simple Pascal-like language to JVM bytecode compiler

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published