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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Ada platforms and pricing, was: Re: a new language, designed for safety ! Date: Wed, 18 Jun 2014 20:17:32 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <1402308235.2520.153.camel@pascal.home.net> <85ioo9yukk.fsf@stephe-leake.org> <255b51cd-b23f-4413-805a-9fea3c70d8b2@googlegroups.com> <5ebe316d-cd84-40fb-a983-9f953f205fef@googlegroups.com> <2100734262424129975.133931laguest-archeia.com@nntp.aioe.org> <857442918424729589.090275laguest-archeia.com@nntp.aioe.org> Injection-Date: Wed, 18 Jun 2014 20:17:32 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="24322"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194UXAki+t4la/5XlgucTojJvDg/X9RORM=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:6sOHX4LAicxarAt6OQQxNi6Le9s= Xref: news.eternal-september.org comp.lang.ada:20439 Date: 2014-06-18T20:17:32+00:00 List-Id: On 2014-06-18, Dmitry A. Kazakov wrote: > On Wed, 18 Jun 2014 17:34:35 +0000 (UTC), Natasha Kerensikova wrote: > >> For some reason I'm much more frightened by parsing Ada text than by >> code generation. I know the latter is probably not easier than the >> former (I'm aware of LLVM vs nested functions), but who said fright is >> rational? > > Oh, but parsing is really simple thing. You do recursive descent all the > time. Except for expressions. For expressions you could take this: > > http://www.dmitry-kazakov.de/ada/components.htm#12.9 > I agree parsing is a lot easier than code generation and I've written a number of recursive descent parsers over the years. However, off the top of my head, I don't understand why you can't parse an Ada expression using recursive descent, especially if you have access to the symbol table (if you need it). Do you have an example, because the answer's probably obvious once you point it out. :-) (I've never written a parser for Ada syntax, but I have written parsers for various Wirth style languages in the past and I don't recall any specific problems with expressions in those languages.) Thanks, Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world