10.02.2019 Views

opora

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

KAPITOLA 2. JAZYKY, GRAMATIKY A JEJICH KLASIFIKACE 20<br />

Cvičení 2.4.9 Sestrojte gramatiky, které generují tyto jazyky:<br />

(a) L = {ww R | w ∈ {a, b} ∗ }<br />

(b) L = {wcw R | w ∈ {a, b} + }<br />

(c) jazyk aritmetických výrazů s operátory +, ∗, / a − ve významu unárního i<br />

binárního operátoru.<br />

(d) jazyk identifikátorů (vytvořte gramatiky s levou rekurzí, s pravou rekurzí a<br />

s minimálním počtem pravidel).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!