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 18:27:55 +0100 Organization: Aioe.org NNTP Server Message-ID: 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> 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:61165 List-Id: On 2021-01-17 17:55, Shark8 wrote: > Dmitry isn't asking about the manner in which you are using prefix-notation, he's asking what the context (types, operations, etc) you're talking about. I understand that even less. > In any case, converting between inline/pre-/post-fix operators is trivial: parse the operations and operands into a structure [typically a binary tree], and then walk the tree as needed to produce your desired output. OK, that is not conversion that is generation of the syntax tree. It is up to the user callback to execute or to generate the tree. An example generating syntax tree for Ada 95 expression in one pass is provided. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de