Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Andy Walker Newsgroups: comp.compilers Subject: Re: Why no shift-shift conflicts? Date: Fri, 28 Jan 2022 10:13:17 +0000 Organization: Not very much Lines: 21 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <22-01-116@comp.compilers> References: <22-01-112@comp.compilers> <22-01-115@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Content-Language: en-GB Xref: csiph.com comp.compilers:2873 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]