PLQ #2Done on:   Tuesday, January 24th

Question 1 @ 2023-01-24 18:55

What’s the problem with this BNF:

<PAGES> ::= <int>
          | <int> - <int>
          | <int> , <PAGES>
          | <int> - <int> , <PAGES>

Question 2 @ 2023-01-24 19:00

What is the reason we’re using BNFs to specify our language(s)?


Question 3 @ 2023-01-24 19:03

The AE BNF is:

<AE> ::= <num>
      | { + <AE> <AE> }
      | { - <AE> <AE> }
      | { * <AE> <AE> }
      | { / <AE> <AE> }

Is this for a language that evaluates expressions left-to-right or right-to-left?