Re: How change grammar to equivalent LL(1) ?

silas poulson <Silas8642@hotmail.co.uk>
Wed, 11 Nov 2020 08:27:35 -0800 (PST)

          From comp.compilers

Related articles
How change grammar to equivalent LL(1) ? borucki.andrzej@gmail.com (Andy) (2019-12-22)
Re: How change grammar to equivalent LL(1) ? lhp+news@toft-hp.dk (Lasse =?iso-8859-1?q?Hiller=F8e?= Petersen) (2019-12-23)
Re: How change grammar to equivalent LL(1) ? christopher.f.clark@compiler-resources.com (Christopher F Clark) (2019-12-23)
Re: How change grammar to equivalent LL(1) ? DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2019-12-23)
Re: How change grammar to equivalent LL(1) ? lhp+news@toft-hp.dk (Lasse =?iso-8859-1?q?Hiller=F8e?= Petersen) (2020-04-24)
Re: How change grammar to equivalent LL(1) ? 773-297-7223@kylheku.com (Kaz Kylheku) (2020-04-24)
Re: How change grammar to equivalent LL(1) ? Silas8642@hotmail.co.uk (silas poulson) (2020-11-11)
| List of all articles for this month |
From: silas poulson <Silas8642@hotmail.co.uk>
Newsgroups: comp.compilers
Date: Wed, 11 Nov 2020 08:27:35 -0800 (PST)
Organization: Compilers Central
References: 19-12-023 20-04-009 20-04-010
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="76159"; mail-complaints-to="abuse@iecc.com"
Keywords: parse
Posted-Date: 11 Nov 2020 11:51:35 EST

An even later response, but thought quote from course notes (§5.6.5
available here <http://cs.rhul.ac.uk/courses/CS3470/>) I'm currently
pursuing might be useful.


*LL(1) grammars*
Grammars which admit non-back-tracking top down LL(1) parsers are
  precisely the ones which are left factored, follow determined and have
  no left recursion.


Thus we have the following definition: A context-free grammar is LL(1) if
for all non-terminals A and productions A ::= α|β we have
1. first(α) ∩ first(β) = ∅
2. If A ∗⇒ ε then first(A) ∩ follow(A) =∅.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.