Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news.misty.com!news.iecc.com!.POSTED!nerds-end From: "Jonathan Thornburg" Newsgroups: comp.compilers,comp.unix.shell,comp.os.linux.misc Subject: Re: magic/absurd bash interpreter/compiler ? Date: 24 Dec 2012 03:57:39 GMT Organization: Compilers Central Lines: 19 Sender: johnl@iecc.com Approved: comp.compilers@iecc.com Message-ID: <12-12-016@comp.compilers> References: <12-12-014@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: leila.iecc.com 1356325756 38007 64.57.183.58 (24 Dec 2012 05:09:16 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Mon, 24 Dec 2012 05:09:16 +0000 (UTC) Keywords: design Posted-Date: 24 Dec 2012 00:09:16 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:800 comp.unix.shell:6258 comp.os.linux.misc:6894 In comp.compilers Avoid9Pdf@gmail.com wrote: > But this bash nonsense is infuriating me! We > need a rigorous/formal syntax for computing. [[...]] > Does this thing use multiple passes. Eg. where the complete command-line > is FIRST analysed for "<", ">", and then LATER any function/s who's input > and/or output is not specified, can use the previous scan's stuff. If you want a shell with a well-defined formal structure, you might find rc of interest. It uses a YACC (i.e., LALR(1)) parser. As usual, Wikipedia has a reasonable intro with links to more information: http://en.wikipedia.org/wiki/Rc -- -- "Jonathan Thornburg [remove -animal to reply]" Dept of Astronomy, Indiana University, Bloomington, Indiana, USA "C++ is to programming as sex is to reproduction. Better ways might technically exist but they're not nearly as much fun." -- Nikolai Irgens