Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.compilers Subject: Re: A minimal LL(1) parser generator ? Date: Thu, 02 Jan 2020 17:25:14 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 42 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <20-01-003@comp.compilers> References: <19-12-016@comp.compilers> <19-12-030@comp.compilers> <19-12-032@comp.compilers> <19-12-040@comp.compilers> <20-01-001@comp.compilers> Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="11280"; mail-complaints-to="abuse@iecc.com" Keywords: LL(1) Posted-Date: 02 Jan 2020 13:21:52 EST 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:2423 carlglassberg@gmail.com writes: >On Tuesday, December 31, 2019 at 8:42:51 AM UTC-8, Anton Ertl wrote: >> carlglassberg@gmail.com writes: >> >Gray's meta notation uses a postix operator "&&" for "separator list". >... >> >If Gray: "a b &&" ---> EBNF: "a { b a }" ... >> >"a b && c &&" ... >Should that be ? >a {b a} { c a {b a}} Yes. >Also, would > a b && c d && I assume you mean a concatenation of "a b &&" and "c d &&". In Gray syntax that would be (( a b && c d && )) >parse as: > a { b a } c { d c } Yes. >or as: > a { b a } c { d a { b a } c } If you want that, you would write it as (( a b && c )) d && && is just a binary postfix operator. - anton -- M. Anton Ertl anton@mips.complang.tuwien.ac.at http://www.complang.tuwien.ac.at/anton/