Article View: comp.lang.ada
Article #27ANN: Ada syntax analyzer v1.1
From: Dmitry A. Kazakov
Date: Mon, 30 Nov 2026 10:48
Date: Mon, 30 Nov 2026 10:48
32 lines
2525 bytes
2525 bytes
The current version provides a full Ada 2022 syntax analyzer library. The analyzer parses the source and creates the syntax tree and cross reference of defining identifiers in the source. Both structures are allocated in an arena pool storage and can be released as a whole. The code source can be file, stream or a user-defined container implementing multi-line source interface. Unicode is fully supported as well as Unicode identifiers normalization checks. https://www.dmitry-kazakov.de/ada/ada_syntax_analyzer.htm Changes to the preious version: - Get_Source_Description function was added to the cross-reference of contexts; - Context table of contents was added for fast search of defining identifiers. The function Find was added for the purpose; - Declaration context contains a reference to the node that contains it; - Accept statement has operation to get the declaration context of the task body it nested in; - The task body node has the list of all nested accept statements; - Conflicting declarations that cannot be overloaded are now detected and reported as errors; - Nodes enumeration type reordered for easier classification; - The function Find was added to find directly visible defining identifiers; - The procedures Pop and Push were added to push and pop defining identifiers onto the argument stack. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de
Technical Details
Message-ID:
<11ejkad$bcs0$3@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> Newsgroups: comp.lang.ada Subject: ANN: Ada syntax analyzer v1.1 Date: Mon, 30 Nov 2026 11:48:47 +0100 Organization: A noiseless patient Spider Lines: 32 Message-ID: <11ejkad$bcs0$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 30 Nov 2026 10:48:45 +0000 (UTC) Injection-Info: dont-email.me; logging-data="373632"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HrCM5i+jzERAmG8A/bwZOLSmOcy4wGXI="; posting-host="21a0e6e5ee15ad602983353d1c9fdb9d" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:+1U1COhggc4VJYxS0tHP76p9/qk= sha256:em6VQqEaNcoEWmaWITTDBByoDwViXGHalN7zhFQF/M8= sha1:AhnMoKq5+gruBt9q+ZSEOq0JT/E= sha256:Ido23QqFEoVgXUsLzg5A3R/fZ85yV5SPmWXmlfScj9M= Content-Language: en-US