From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ae9:ed82:: with SMTP id c124mr20789541qkg.3.1610903843898; Sun, 17 Jan 2021 09:17:23 -0800 (PST) X-Received: by 2002:a25:5c1:: with SMTP id 184mr32172106ybf.173.1610903843709; Sun, 17 Jan 2021 09:17:23 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.uzoreto.com!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 17 Jan 2021 09:17:23 -0800 (PST) In-Reply-To: <094c6469-f72a-4879-bc17-fcc09d24f837n@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=84.209.88.37; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 84.209.88.37 References: <4370e6f1-4504-4dff-8208-e1ad7eeac9a5n@googlegroups.com> <38687765-d3ee-4966-a4e3-c975bd73ceadn@googlegroups.com> <7d0f4046-76e7-47ae-ab56-751941fc1a5fn@googlegroups.com> <094c6469-f72a-4879-bc17-fcc09d24f837n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0d57b74b-8d1e-4783-99cf-3afb27cd30d1n@googlegroups.com> Subject: Re: ANN: Simple Components v From: reinert Injection-Date: Sun, 17 Jan 2021 17:17:23 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61163 List-Id: s=C3=B8ndag 17. januar 2021 kl. 17:55:59 UTC+1 skrev Shark8: > Dmitry isn't asking about the manner in which you are using prefix-notati= on, he's asking what the context (types, operations, etc) you're talking ab= out.=20 > In any case, converting between inline/pre-/post-fix operators is trivial= : parse the operations and operands into a structure [typically a binary tr= ee], and then walk the tree as needed to produce your desired output.=20 >=20 >=20 Yes, pretty trivial and too simple for "Simple components" :-) One may defi= ne operators (function of max two arguments) hard-coded=20 in an actual Ada program or assume it is defined outside of it in a script= (a bit more complex). Also note that check of user input and error message= s (to the user) adds complexity.=20 I am just checking out what is available to avoid spending time to reinvent= the wheel. reinert