dragon-book-exercise-answers icon indicating copy to clipboard operation
dragon-book-exercise-answers copied to clipboard

4.4.3 FOLLOW(S) issue

Open x-ji opened this issue 10 years ago • 6 comments

Should be {$, a, +, *} instead of {a, +, *}

x-ji avatar Nov 06 '14 21:11 x-ji

Precisely, I think this change has to be made. @fool2fish

sudheesh001 avatar Feb 21 '15 10:02 sudheesh001

what's the reason for 'a' to stay in FOLLOW(S)? If it does, you will get a conflict at M[A, a].

NoteBookie avatar Dec 29 '15 12:12 NoteBookie

S -> a A A-> S + A | S * A | ε (I thought it worked.)

NoteBookie avatar Dec 29 '15 12:12 NoteBookie

@NoteBookie yeah 'a' should be removed

zackszhu avatar Dec 30 '15 05:12 zackszhu

No! I think 'a' should be put in,it's what the question asked.the @NoteBookie did is how to fix it.Here what we should do is get the follow set by the rule.

Yudezhi avatar Mar 15 '19 01:03 Yudezhi

'a' shouldn't be in FOLLOW(s) @Yudezhi

theo-one avatar May 16 '19 02:05 theo-one