Skip to content

SumitBamal/CLR-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CLR-Parser

Run the file clr.py for making CLR table for grammar you provide and then parse a string for the same.

Sample input :     

Example Grammar -
         S->AA
         A->aA
         A->b
         end

Example Strings -
         aaabab
         bb
         abb
         bab

Running the parser

1.$python3 clr.py

2.Then enter the grammer, the grammer will be parsed and r-r, s-r conflicts will indicate that the grammar is not CLR.

3.Then enter the string to be parsed.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published