shakirul15-311 / Find-First-and-Follow

first and follow of a grammar in c++
3 stars 2 forks source link

Some inputs are giving wrong outputs #1

Open Yogesh7920 opened 3 years ago

Yogesh7920 commented 3 years ago

Consider the following input

S ACB|CbB|Ba A da|BC B g|0 C h|0

The output is

THE GRAMMAR IS AS FOLLOWS

S = ACB|CbB|Ba A = da|BC B = g|0 C = h|0

FIRST

S = #d A = d B = g C = h

FOLLOW

S = $ A = h B = |h C = gh

This output is wrong for all the productions. E.g for S the start is {d, g, h, #, b, a}

POOJANGHETIYA commented 1 year ago

Hey Mate, I would like to help with this issue. Can you please elaborate on the issue, so that I can get a more clear understanding. Also give some information about the code