Re: Why no shift-shift conflicts?

Andy Walker <anw@cuboid.co.uk>
Fri, 28 Jan 2022 10:13:17 +0000

          From comp.compilers

Related articles
Why no shift-shift conflicts? costello@mitre.org (Roger L Costello) (2022-01-25)
Re: Why no shift-shift conflicts? 480-992-1380@kylheku.com (Kaz Kylheku) (2022-01-28)
Re: Why no shift-shift conflicts? anw@cuboid.co.uk (Andy Walker) (2022-01-28)
Re: Why no shift-shift conflicts? drikosev@gmail.com (Ev. Drikos) (2022-01-28)
Re: Parsing multiple inputs, was Why no shift-shift conflicts? tkoenig@netcologne.de (Thomas Koenig) (2022-01-28)
Re: Parsing multiple inputs, was Why no shift-shift conflicts? anw@cuboid.co.uk (Andy Walker) (2022-01-28)
| List of all articles for this month |
From: Andy Walker <anw@cuboid.co.uk>
Newsgroups: comp.compilers
Date: Fri, 28 Jan 2022 10:13:17 +0000
Organization: Not very much
References: 22-01-112 22-01-115
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="4059"; mail-complaints-to="abuse@iecc.com"
Keywords: parse, question, comment
Posted-Date: 28 Jan 2022 13:03:09 EST
Content-Language: en-GB

On 28/01/2022 01:20, Kaz Kylheku wrote:
[...]
> Since there is only one input stream, there cannot be a shift-shift
> conflict.


I suppose there is no conceivable use for a parsing process
that operates on several collateral input streams? Such an animal
would not be a conventional compiler implementing a conventional
programming language, but people often invent "little languages"
for specialist purposes, and these often need "little compilers"
to process them. It might help such people if tools similar to
Flex and Bison were available to process multiple streams instead
of having to roll your own [or somehow stitching the inputs into
one stream].


--
Andy Walker, Nottingham.
        Andy's music pages: www.cuboid.me.uk/andy/Music
        Composer of the day: www.cuboid.me.uk/andy/Music/Composers/Simpson
[It seems pretty exotic. The obvious first question is whether you can
combine the multiple input streams in a prepass and parse them as one. -John]


Post a followup to this message

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