Android IDL support (updated older implementation, now published)#159
Merged
gunnar-mb merged 2 commits intoCOVESA:masterfrom Feb 24, 2026
Merged
Android IDL support (updated older implementation, now published)#159gunnar-mb merged 2 commits intoCOVESA:masterfrom
gunnar-mb merged 2 commits intoCOVESA:masterfrom
Conversation
Implements a new Android IDL (AIDL) parser (still Lark-based and based on old work but now much more complete). After Lark parser, the token tree is walked to build up an AST as usual (similar design as protobuf/grpc, etc). Finally, an AIDL->IFEX model/model translation is implemented. aidl.grammar: Lark LALR grammar for AIDL syntax aidl_lark.py: Lark tree walker → AIDLFile AST aidl_to_ifex.py: AIDLFile AST → IFEX AST entrypoints/aidl_to_ifex.py: CLI entrypoint EDIT: AIDL tests were added later (mostly AI generated) Signed-off-by: Gunnar Andersson <gunnar.andersson@mercedes-benz.com>
ifex_to_aidl.py model-2-model convert ifex to aidl model aidl_generator.py: Jinja2-based generator with templates + tests and entrypoints Signed-off-by: Gunnar Andersson <gunnar.andersson@mercedes-benz.com>
Collaborator
Author
|
@mbenelli Can you (retroactively) please take a look at this one also? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Author: Gunnar Andersson <gunnar.andersson@mercedes-benz.com>, MBition GmbH.
Android IDL support
The Android IDL support (.aidl) was first developed last year but not fully published.
It has been updated and completed to a much higher level now, cleaned up and documented (with comments)
and it is time to put it into the project.
Good sized test suite is also included now (done with AI-generation support)
The converter uses the imperative approach instead of the declarative/table. While not as elegant, it is relatively easy to maintainer. As always, this could evolve later.
The submission is provided under the main project license (LICENSE file in root of project).
The program was tested solely for our own use cases, which might differ from yours.
Provider Information