Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1893

Re: XPL Analyzer

From Hans-Peter Diettrich <DrDiettrich1@aol.com.dmarc.email>
Newsgroups comp.compilers
Subject Re: XPL Analyzer
Date 2017-06-13 06:45 -0400
Organization Compilers Central
Message-ID <17-06-012@comp.compilers> (permalink)
References <17-06-002@comp.compilers> <17-06-006@comp.compilers> <17-06-007@comp.compilers> <17-06-011@comp.compilers>

Show all headers | View raw


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 <teampli.net/XPL/ldindex.html>.

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]

Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

XPL Analyzer Shoefoot <shoefoot@gmail.com> - 2017-06-05 01:48 -0400
  Re: XPL Analyzer "Robin Vowels" <robin51@dodo.com.au> - 2017-06-05 20:28 +1000
  Re: XPL Analyzer George Neuner <gneuner2@comcast.net> - 2017-06-05 22:17 -0400
    Re: XPL Analyzer Shoefoot <shoefoot@gmail.com> - 2017-06-07 18:56 -0700
      Re: XPL Analyzer mac <acolvin@efunct.com> - 2017-06-08 17:13 +0000
      Re: XPL Analyzer George Neuner <gneuner2@comcast.net> - 2017-06-09 13:20 -0400
        Re: XPL Analyzer Hans-Peter Diettrich <DrDiettrich1@aol.com.dmarc.email> - 2017-06-13 06:45 -0400
      Re: XPL Analyzer Ben Hanson <jamin.hanson@googlemail.com> - 2017-07-30 14:01 -0700

csiph-web