Skip to content

Recursive descent parser implementation on a simple grammar using python.

Notifications You must be signed in to change notification settings

Abdelrahman671/Recursive-Descent-Parser-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recursive Descent Parser using Python

This program illustrates how to implement recursive descent parser on a simple grammar using python.

Recursive Descent Parser:

It is a kind of Top-Down Parser. A top-down parser builds the parse tree from the top to down, starting with the start non-terminal. A Predictive Parser is a special case of Recursive Descent Parser, where no Back Tracking is required. By carefully writing a grammar means eliminating left recursion and left factoring from it, the resulting grammar will be a grammar that can be parsed by a recursive descent parser.

Program Features:

  • Read strings from a file and display their status if accepted or rejected.
  • User can insert a string and check its status.

About

Recursive descent parser implementation on a simple grammar using python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages