(→The Problem) |
(→The Problem) |
||
Line 2: | Line 2: | ||
Consider the following grammar: | Consider the following grammar: | ||
− | + | ||
− | bexpr -> bexpr or bexpr | bterm | + | bexpr -> bexpr or bexpr | bterm |
− | bterm -> bterm and bterm | bfactor | + | bterm -> bterm and bterm | bfactor |
− | bfactor -> not bfactor | ( bexpr ) | true | false | + | bfactor -> not bfactor | ( bexpr ) | true | false |
− | |||
# Identify the terminal and non-terminal symbols of the grammar. | # Identify the terminal and non-terminal symbols of the grammar. |
Consider the following grammar:
bexpr -> bexpr or bexpr | bterm bterm -> bterm and bterm | bfactor bfactor -> not bfactor | ( bexpr ) | true | false