Page 1 of 1

Question Six (5 marks) Considering the following Grammar: E->E+T | T E->T*T | T-F | T*F | F F->( E ) | id Id->digit Digi

Posted: Mon May 09, 2022 5:55 am
by answerhappygod
Question Six (5 marks)
Considering the following Grammar:
E->E+T | T
E->T*T | T-F | T*F | F
F->( E ) | id
Id->digit
Digit->{0,1,2,3,4,5,6,7,8,9}
Generate the following:
(a) Parse Tree (2
marks)
(b) Syntax Tree (2 marks)
(c) Abstract Syntax Tree (AST) (1
mark)
For String: 9*5+2-4
can i please get this in a hour