Skip to content

nikhil-rajesh/Compiler-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Experimental Compiler

This is my implementation of an experimental compiler that I made using the documentations provided here. This was done as part of a Compiler Lab course I took up in my 6th Semester at NITC.

Progress

  • ✔️ Installation
  • ✔️ CodeGeneration for Arithmetic Expressions
  • ✔️ Introduction to static storage allocation
  • ✔️ Adding Flow Control Statements
  • ✔️ User Defined Variables and arrays
  • ✔️ Adding Functions
  • ✔️ User defined types and Dynamic Memory Allocation
  • ✔️ Adding Objects – Data encapsulation
  • ✔️ Inheritance and Sub-type Polymorphism

Running

The environment can be setup using the instructions provided here.

There is a slight modification to the run command given in the above gist.

docker run -v $PWD/files:/xsm_expl/files -d --name silc -i silc:ubuntu2- :heavy_check_mark:04

For each implement there is a makefile given in the directory. The code can be compiled using

make

And finally just run the corresponding executable file.

About

My implementation of a Experimental Compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published