Skip to content

Python program for operator precedence parser. It analyzes the grammar given in "grammar.txt" and precedence of operators provided in "order.csv" and then validates the input string.

Notifications You must be signed in to change notification settings

gsmanu007/Operator-Precedence-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Operator-Precedence-Parser

Python program for operator precedence parser. It analyzes the grammar given in "grammar.txt" and precedence of operators provided in "order.csv" and then validates the input string.

For an example "order.csv" contains left associative grammar for basic arithmetic operators. The "operator_precedence.py" anlyzes the grammar and precedence rules and reduces the string "i - i + i" where i represents id.

About

Python program for operator precedence parser. It analyzes the grammar given in "grammar.txt" and precedence of operators provided in "order.csv" and then validates the input string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages