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.

Features

  • The analyzer parses the source and creates the syntax tree and cross reference of defining identifiers in the source
  • The cross reference contains the defining identifiers declared in the code and visibility scopes
  • The visibility scopes can be used for name resolution, e.g. finding all matching names visible at the location. Note that this does not cover use-clauses which need to be handed if the complete list required. Use clauses are linked in the list for each declaration context of the tree in order to ease the process
  • The tree and cross-reference 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. One can compile from a database or a git repository, if the interface is provided
  • There can be any number of compilation units in the source. One parsing call takes one unit from the source
  • Unicode is fully supported as well as Unicode identifiers normalization checks
  • Associative operations like +,-,*,/,.,| are coalesced
  • There is a text output of the tree in a normalized form
  • Constant folding is supported. If enabled universal expressions and constant Boolean expressions are evaluated into constants
  • There is a text output in a tree form
  • Syntax trees can be compared for equality
  • The tree and cross-reference can be serialized into a stream
  • There is a test suite comprised of ACATS tests related to the syntax (mostly, illegal code to be rejected) and ARM examples

Project Activity

See All Activity >

Categories

Compilers

Follow Ada syntax analyzer

Ada syntax analyzer Web Site

Other Useful Business Software
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Get Started Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ada syntax analyzer!

Additional Project Details

Intended Audience

Developers

Programming Language

Ada

Related Categories

Ada Compilers

Registered

3 days ago