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=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: ANN: Simple Components v Date: Sun, 17 Jan 2021 07:54:12 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <4370e6f1-4504-4dff-8208-e1ad7eeac9a5n@googlegroups.com> <38687765-d3ee-4966-a4e3-c975bd73ceadn@googlegroups.com> NNTP-Posting-Host: 5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:61157 List-Id: On 2021-01-17 06:34, reinert wrote: >>> Convert between prefix, infix, postfix notation? >> Convert what? >> -- > > Here is a reference to the topic: > > https://www.geeksforgeeks.org/convert-infix-prefix-notation: > > Simple example: > > a + b <-> +(a,b) And what is the problem? I mean this is trivial, or I do not understand your question. > The expressions could be more complex: > > (a op1 b op2 (c + (d op3 e))) op4 ((f op5 g) op6) > > where op1, op2 etc are operators (functions). > > This may be standard for those making compilers. > I use it to process sets (where operators are intersection, union etc) > and a, b, c, ... above can be references to functions returning Ordered_Sets. I do not understand this either. Set-theoretic operations form a lattice, no different from Ada's logical operations "and", "or", "not" plus "in", "not in". Same rules. Are asking about syntax or types involved? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de