Compiler Theory help

idhasitha

Well-known member
  • Nov 3, 2008
    3,496
    692
    113
    NaughtyAmerica
    machan menna meka kragana help ekak dipalakoo :nerd:

    Given the grammar E ---> E+E | E-E | E*E | (E) | -E | id and the operator precedence table below, show how the string (id – id) * id will be parsed by

    ·Shift-reduce parser
    ·Operator precedence parser
    In both cases, you must clearly show all the steps in the parsing process.






    Capture.png