logo

Crowdly

Daná je gramatika G = ({S, E}, {/, %, +, -, *, ^, (, ), number}, P , S), kde P...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Daná je gramatika G = ({S, E}, {/, %, +, -, *, ^, (, ), number}, P, S), kde P

je množina nasledujúcich prepisovacích pravidiel:

S ::= E { ("+" ∣ "-" ∣ "*" ∣ "/") E }

E ::= number ∣ "(" S ")"

Gramatika reprezentuje jazyk aritmetických výrazov. Na základe vlastností uvedenej gramatiky vyhodnoďte nasledujúci výraz:

8 / 2 + 2 * 3.

Poznámka: Odpoveď uvádzajte iba ako číslo (napr. 100).
More questions like this

Want instant access to all verified answers on moodle.fei.tuke.sk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!