| 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) |
| From: | Christopher F Clark <christopher.f.clark@compiler-resources.com> |
| Newsgroups: | comp.compilers |
| Date: | Mon, 23 Dec 2019 05:57:50 -0500 |
| Organization: | Compilers Central |
| Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="59138"; mail-complaints-to="abuse@iecc.com" |
| Keywords: | LL(1) |
| Posted-Date: | 23 Dec 2019 21:52:56 EST |
Just a slight comment on what
Lasse =?iso-8859-1?q?Hiller=F8e?= Petersen <lhp+news@toft-hp.dk> wrote:
The technique of changing:
Expr: num | num plus Expr;
to
Expr: num ExprTailOpt; ExprTailOpt: plus Expr | /* empty */;
is called left-factoring.
By the way, "Opt" is the usual suffix for Ety.
--
******************************************************************************
Chris Clark email: christopher.f.clark@compiler-resources.com
Compiler Resources, Inc. Web Site: http://world.std.com/~compres
23 Bailey Rd voice: (508) 435-5016
Berlin, MA 01503 USA twitter: @intel_chris
------------------------------------------------------------------------------
Return to the
comp.compilers page.
Search the
comp.compilers archives again.