• Keine Ergebnisse gefunden

is not an LL(k) grammar (2)

N/A
N/A
Protected

Academic year: 2022

Aktie "is not an LL(k) grammar (2)"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Γ

4

is not an LL(k) grammar

Given: Grammar Γ4.

P1: STM VAR :=VAR|ID(IDLIST) P2 : VAR ID|ID(IDLIST)

P3 : IDLIST ID|ID,IDLIST

We show that Γ4 is not an LL(k) grammar for any k.

Proof:

Suppose Γ4 is an LL(k) grammar fork N. Consider the two derivations S lm VAR :=VAR lm ID(ID, . . .ID

! "# $

k

) := ID

and

S lm ID(IDLIST) lm ID(ID, . . .ID

! "# $

k

)

Ina Schaefer Context-Free Analysis 1

Γ

4

is not an LL(k) grammar (2)

Let β =VAR := VAR,γ =ID(IDLIST),x = ID(ID, . . . ,ID

! "# $

k

) := ID and y = ID(ID, . . .ID

! "# $

k

).

Rewriting the derivations yields

S lm β lm x and

S lm γ lm y

Then prefix(k,x) =prefix(k,y), but β $=γ which contradicts the LL(k) property ofΓ4.

Ina Schaefer Context-Free Analysis 2

Referenzen

ÄHNLICHE DOKUMENTE

ständig bezahltes Loth wird als unbezahlt angesehen. Doch ist der Empfänger nicht verpflichtet, einen unvollständig bezahlten Brief zn empfangen, wenn er denselben

Eine ähnliche Entwickelung hat die Holzbekleidung der Renaiffance durchgemacht. Sie begann damit, dafs die Geräthe von der Wand losgelöft und wiederum zu »Mobilien« gemacht ‘

ist aber trotzdem erhalten, weil keine Arbeit geleistet wird.. (d) Hier gibt es ein Potential U (r; t) = ta r, dies ist aber

The events in Egypt that occurred after 3 July when the army deposed President Mohamed Morsi then crushed the Muslim Brotherhood’s counter demonstrations, resulting in hundreds

Markedly better learning outcomes in private schools may also help to explain why around half of all parents in Uttar Pradesh—where the average rural household spends 57 percent

The block-sorting text compression algorithm can be viewed as associ- ating a context with each character to be compressed, and then sorting the characters on their contexts.

Die Gefährdung erstreckt sich auch auf die seitlichen, unterhalb eines Wehres meist herzustellenden Ufersicherungsbauten, welche ebenfalls durch die Wirbelbewegung des Wassers und

Die Gefährdung erstreckt sich auch auf die seitlichen, unterhalb eines Wehres meist herzustellenden Ufersicherungsbauten, welche ebenfalls durch die Wirbelbewegung des Wassers und