Skip to content

sayef/simple-lex-and-yacc-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Parser Using Lex and Yacc

###How to run my code for assignment #2 (parser):

  1. In the Assignment_2.pdf, there is given what to do at a glance.
  2. Keep the parser folder anywhere in drive.
  3. Keep the Makefile.mk file in home.
  4. Edit the first line of the Makefile.mk from "cd parser" to "cd path_of_the_parser_folder"
  5. Go to command prompt and write "cd ./Makefile.mk"

###How to run my code for assignment #3 (three-address-code):

  1. In the Assignment_3.pdf, there is given what to do at a glance.
  2. Keep the three0address-code folder anywhere in drive.
  3. Keep the Makefile.mk file in home.
  4. Edit the first line of the Makefile.mk from "cd parser" to "cd path_of_the_parser_folder"
  5. Go to command prompt and write "cd ./Makefile.mk"

###Input for both assignment: 1. Initially input.txt is given in the code. You can customize the inputs. 2. There is an additional input file named tricky_input.txt that contains some tricky cases.

About

Simple Parser Using Lex and YACC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published