Skip to content

A simple parser for a simple grammar using lex and yacc tools.

Notifications You must be signed in to change notification settings

Rayann12/Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

First enter in the terminal the following command:

gedit Lex_Part.l

Save the Lex_Part.l file contents in the opened file in file editor (copy paste).

Second enter in the terminal the following command:

gedit Yacc_Part.y

Save the Lex_Part.l file contents in the opened file in file editor(copy paste).

Lastly do the following 4 commands to execute the parser:

lex Lex_Part.l

yacc -d Yacc_Part.y

gcc lex.yy.c y.tab.c -ll

./a.out

At this point your code should be running successfully.

About

A simple parser for a simple grammar using lex and yacc tools.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published