Skip to content

kode-git/simplanplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpLanPlus

alternatetext alternatetext alternatetext alternatetext alternatetext

Compiler based on ANTLR4 gramar and implemented in Java (JDK 13.0.6). It is used to Compiler and Interpreter exam at Alma Mater Studiorum - DISI Course

Features

The system will check the following cases in the compilation field:

  • Undeclared Variables / Functions
  • Variables declared multiple times in the same environment
  • Using uninitialized variables
  • Correct use of pointers
  • Current parameters not conforming to formal parameters (including checking on parameters passed for var)
  • The correctness of types

It also controls access to "deleted" identifiers with particular pay attention to aliasing by implementing the system.

Throughout the project, assume that programs can be recursive but not mutually recursive .

We introduced also the interpreter simulator:
A. The bytecode has instructions for a stacked machine that stores in a appropriate register the value of the last calculated instruction
B. Implement an interpreter for the bytecode.
C. Compile and execute high-level language programs.

Authors

  • Andrea Gurioli (@andreagurioli1995)
  • Giovanni Pietrucci (@giovanniPi997)
  • Mario Sessa (@kode-git)

License

© Apache License Version 2.0, January 2004

About

Compiler based on ANTLR4 grammar and implemented in Java (JDK 13.0.6). Compiler and Interpreter exam at Alma Mater Studiorum - DISI Course

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published