PLQ #1Done on:   Tuesday, January 26th

Question 1 @ 2021-01-26 18:14

How many tangents should I do today?


Question 2 @ 2021-01-26 20:09

Your friend looked over your shoulder, and saw our AE grammar

<AE>  ::= ... <PROD> ...
<PROD> ::= ... <ATOM> ...
<ATOM> ::= <num>
        | ( <AE> )
        | [ <AE> ]
        | { <AE> }

and came up with a bright idea: why not “abstract” away the parens to make this shorter? Here’s the suggested alternative:

<ATOM>  ::= <num>
          | <OPEN> <AE> <CLOSE>

<OPEN>  ::= ( | [ | {
<CLOSE> ::= ) | ] | }

Does this preserve the language?


Question 3 @ 2021-01-26 20:09

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