Skip to content

Latest commit

 

History

History

6-YACC

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Compiler Design - Assignment 7

Shrirang Prashant Deshmukh | 19CS01065

Lexical analysis and parsing using Flex and Yacc

  • Lex File - parse.l
  • YACC File - parse.y

Main program reads input from file specified by the user.

Run the program by following commands given below and then enter the location of the file that you wish to parse.

Eg: ./examples/input.txt

Instructions for usage

1. yacc parse.y -d  
2. lex parse.l  
3. gcc parse.tab.c  
4. a.exe