r/ada • u/Dmitry-Kazakov • 1d ago
New Release ANN: Ada syntax analyzer v1.1
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.
1
u/AzulithLDA 1d ago
How does it differ from Libadalang?