Skip to content

Leonardofreua/dpl-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DPL Compiler

This compiler aims to demonstrate the construction of programming lannguage from scratch. The base language used is Pascal.

Compiler Features

  • Lexer;
  • Parser;
  • Symbol Table;
  • Semantic Analysis;
  • Intermediate code Generation (IR) using LLVM;

Language Features

  • Primitive types: Bool, Real, Integer and String;
  • Arithmetic Operations (Binary and Unary);
  • Command to print results on the screen (Writeln);

Installation

Run pip install -r requirements.txt to install the llvmlite dependecy;

Usage

Go to the src/dplcompiler directory and Run python3 app.py <source_file.dpl> (There is an example in src/dplcompiler/dpl_source_code/)

Releases

No releases published

Packages

No packages published

Languages