Skip to content

The aim of the project was to write a compiler for a language called Decaf. Decaf is a simple imperative language similar to C or Pascal. The project involved writing a parser for parsing the source code, using flex and bison, and detecting any errors; Constructing an AST of the given source code, using bison, defining a custom class for each ty…

Notifications You must be signed in to change notification settings

mohit-agarwal/Compiler-for-Decaf-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler-for-Decaf-language

The aim of the project was to write a compiler for a language called Decaf. Decaf is a simple imperative language similar to C or Pascal.

The project involved writing a parser for parsing the source code, using flex and bison, and detecting any errors; Constructing an AST of the given source code, using bison, defining a custom class for each type of node; Generating IR code from each of the nodes in the AST, and then evaluating this IR, using LLVM.

About

The aim of the project was to write a compiler for a language called Decaf. Decaf is a simple imperative language similar to C or Pascal. The project involved writing a parser for parsing the source code, using flex and bison, and detecting any errors; Constructing an AST of the given source code, using bison, defining a custom class for each ty…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published