Skip to content

EJM169/KTU_S7CS_CompilerDesign_Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KTU_S7CS_CompilerDesign_Programs

This are all the programs that I learned to do in my 7th Semester compiler design lab. This programs were done with aim of understanding and to implement the different phases of a compiler, to implement and test simple optimization techniques and to give exposure to compiler writing tools. This programs were done in the following Languages: C, Lex and Yacc If you want to run the programs make sure you have all the languages and necessary tools to run it already installed.

  1. It contains all the C program files that you need C to run, also the input files needed to run it is included with it. Modify it as you wish
  2. It contains the lex program which requires lex tool to run it. After running the lex program using lex tool you need to run the C program that is generated as the intermediate which can be run by typing gcc lex.yy.c
  3. It contains the yacc program which requires yacc tool to run it. After running the lex program using yacc tool you need to run the C program that is generated as the intermediate which can be run by typing gcc y.tab.c
  4. It's a for loop syntax checker using yacc and lex. First run the lex program and then run the yacc program. Don't forget to include the lex program file in the yacc program auxillary section as it takes the input from the lex program. If you're modifying it don't forget that.
  5. It's a if else syntax checker using yacc and lex. First run the lex program and then run the yacc program. Don't forget to include the lex program file in the yacc program auxillary section as it takes the input from the lex program. If you're modifying it don't forget that.

About

This are the programs that I did in my 7th Semester compiler design lab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •