Skip to content

CSPC41 – PRINCIPLES OF COMPILER DESIGN. Programming Assignment NIT TRICHY

Notifications You must be signed in to change notification settings

adarshPatel509/lex-yacc-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSPC41 – PRINCIPLES OF COMPILER DESIGN

Programming Assignment

Executing LEX Programs:
$ lex fileName.l
$ cc -o out lex.yy.c -ll
$ ./out

Executing LEX and YACC together:
$ cd toFolder
$ yacc -d fileName.y
$ lex fileName.l
$ cc -o out y.tab.c lex.yy.c -ly -ll
$ ./out

HAPPY CODING! 🥂