Simple python programs to do the following:
-
Left Recursion Removal
-
Left Factoring
-
LR(1) state table
As of the latest commit left recursion removal is working. Left factoring is a work in progress and LR(1) is meant to be future task.
Pre-requisites: Have Python3 installed in your system.
Installation:
On Linux: $ sudo apt-get update $ sudo apt-get install python3
On Windows: Go to https://www.python.org/downloads/ and download the preferred version of python3(highly recommend LTS version).
To check if installation was successful execute following command in terminal/command prompt:
python -V
(if it shows python2 version then use command "python3 -V")