From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,24d7acf9b853aac8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!news2.arglkargh.de!news.tornevall.net!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada Date: Thu, 12 Aug 2010 15:25:06 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <87aap6wcdx.fsf@ludovic-brenta.org> <87vd7jliyi.fsf@ludovic-brenta.org> <699464f5-7f04-4ced-bc09-6ffc42c5322a@w30g2000yqw.googlegroups.com> <87k4nylb8c.fsf@ludovic-brenta.org> <4c617774$0$6765$9b4e6d93@newsspool3.arcor-online.net> <2610d347-27cf-4c88-ac18-84f73c7da858@h32g2000yqm.googlegroups.com> <878w4blhzj.fsf@ludovic-brenta.org> NNTP-Posting-Host: 0741f8c09fb897623322792d4846e702 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: 5da0a9e2081fe06cc487ed6b2bc3dbb5 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <878w4blhzj.fsf@ludovic-brenta.org> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=5da0a9e2081fe06cc487ed6b2bc3dbb5 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news1.google.com comp.lang.ada:13197 Date: 2010-08-12T15:25:06-07:00 List-Id: On 08/12/2010 12:59 PM, Ludovic Brenta wrote: > > If I understand your quasi-BNF correctly, an S-Expression in your > grammar can have only one or two, but not three elements. This > contradicts the "(TCP-something (host abc) (port 42) )" example, which > has three elements. No, {} means zero or more, so an S-expression can have one or more elements. Kerensikova (or is it Port�?) provided a more detailed grammar (using the trailing '*' from regexps rather than {}) with some additional options. > http://en.wikipedia.org/wiki/S-expression#Definition But maybe we're both wrong. -- Jeff Carter "What I wouldn't give for a large sock with horse manure in it." Annie Hall 42