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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Victor Porton Newsgroups: comp.lang.ada Subject: Re: Encaspulation: What to export Date: Tue, 28 Nov 2017 17:22:32 +0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: edFHTOfx8phAphItWrZ8cQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.14.10 X-Notice: Filtered by postfilter v. 0.8.2 Xref: reader02.eternal-september.org comp.lang.ada:49215 Date: 2017-11-28T17:22:32+02:00 List-Id: Randy Brukardt wrote: > "Victor Porton" wrote in message > news:ovhst9$1a43$1@gioia.aioe.org... > ... >> I parse not a string but an RDF tree. It is similar to convert AST >> (abstract >> syntax tree) to another format. RDF is similar to an AST but more >> abstract. >> >> So it is NOT a deserialization operation in Ada sense. > > Calling the operation of creating an RDF (or XML or HTML or SGML ...) tree > from "parsing" is a gross distortion from what really is going on. As No. I "parse" RDF (not a text file) and create data in other format. > Dmitry says, it is much more a deserialization operation, since you don't > need any sort of traditional parser to implement it. You just need text I write an "untraditional" parser which extracts data from RDF. > operations (lexical analysis) and a stack of pending tree nodes (both of > which are needed even if you had used a traditional parser anyway). In > general, any "language" where the node types are immediately determined > (as in all of the above, the prefix determines the type of node) does not > need parsing, because there are never any situations where the choice of > what to do has to be deferred. > > Randy. -- Victor Porton - http://portonvictor.org