Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some inputs are giving wrong outputs #1

Open
Yogesh7920 opened this issue Apr 3, 2021 · 1 comment
Open

Some inputs are giving wrong outputs #1

Yogesh7920 opened this issue Apr 3, 2021 · 1 comment

Comments

@Yogesh7920
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants