Skip to content

stefanpantic/pascalina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

λ: Pascalina

Mini Pascal to LLVM complier written in C++. The project uses flex and bison to construct an AST and perform some validity checks in the process. The tree can then be traversed via visitors to perform aditional checks or produce IR from it. The end goal is to implement an LLVM visitor that will generate valid LLVM IR code from the tree.

📋 Plans:

  • Simple project structure (lexical and syntaxical analysis, Makefile)
  • Implement basic AST
  • Support function prototypes, definitions and function calls
  • Support basic arithmetic/relational operations
  • Support control structures (if-else, while)
  • Support functions
  • Perform semantic analysis
  • Include LLVM
  • Generate LLVM IR
  • Add arrays
  • Allow passing of arrays to/from functions
  • Add vectors

ℹ️ About me:

Author: Stefan Pantic.
Contact: [email protected]