in Compiler Design
345 views
1 vote
1 vote
E-> E + T |T

T-> T*F|F

T->(E) | T-F

F->id

If LR(1) parser is used to construct the DFA using the above productions, then how many look-a-heads are present for an item T → .T * F in the initial state ________.
in Compiler Design
345 views

4 Comments

Could anyone please help...I am facing problem in finding the lookaheads.
0
0
it should be {-,$}.
0
0
{*,+,-,$} is the answer given. Help.
0
0
CAN you show how you draw  1st state then it will be possible , or show work how you get look ahed,

answer is {*,+,-,$}
0
0

Please log in or register to answer this question.

Related questions