Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!weretis.net!feeder6.news.weretis.net!news.glorb.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Hans-Peter Diettrich Newsgroups: comp.compilers Subject: Re: XPL Analyzer Date: Tue, 13 Jun 2017 06:45:55 -0400 (EDT) Organization: Compilers Central Lines: 24 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <17-06-012@comp.compilers> References: <17-06-002@comp.compilers> <17-06-006@comp.compilers> <17-06-007@comp.compilers> <17-06-011@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="49390"; mail-complaints-to="abuse@iecc.com" Keywords: parse, history Posted-Date: 13 Jun 2017 06:45:55 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1893 Am 09.06.2017 um 19:20 schrieb George Neuner: > In that case, (our moderator) John's suggestion is probably best ... > if you have the grammar, then plug it into an (LA)LR tool and have it > generate tables for you. > > I'm not familiar with the book you mentioned, but if a grammar is > provided [even if not in EBNF], it should be possible to translate it > for a modern tool. At least I could find a grammar in BNF, by following the links in Wikipedia to . If I had to write an XPL compiler, as an excercise, I'd try to handcraft an LL(1) top-down parser for it. This approach will give more insight into "how to write a compiler", than understanding how to use a compiler generator. Finally that compiler can be rewritten in XPL. Much time will have to be spent in implementing the system library (Implicit Declarations) and memory management. DoDi [It does depend on whether you want to write a modern compiler or one that someone might have written back when XPL was new. -John]