Left-most and Right-most derivation.

This program will read the grammer from the file and make right most and left most derivation.

Grammar:

R->id|num|R+R|R+(R)
id->m|d|r
num->0|6|7

Output:

image