Comments (4)
You are correct - using the same package name in multiple files is valid Franca syntax.
The decision, not to support this in the first release of the processor module was intentional so that the implementation can be simplified. This is currently stated in the README as a limitation. Supporting packages, spread across multiple files is not very hard but requires validation that there are no duplicate member definitions in multiple files.
I would like to still use the package name as a key in the packages dictionary. Instead, packages, declared in multiple files can be merged together by the processor.
I can give this a try in the next few days if you help with validating the correct behavior afterwards.
from pyfranca.
Sorry I miss reading the updated limitations.
I realy like the idea of merging packages, declared in multiple files together. This is better then my approach in franca_validator.py. I can support you in validating the behavior.
from pyfranca.
This turned out to be much easier than I expected. The dev branch now interprets correctly the example that you provided.
Looking forward to your feedback.
from pyfranca.
Released with v0.3.0 .
from pyfranca.
Related Issues (15)
- Index error in p_struct_def_1 HOT 2
- Parser do not detect doubled struct member HOT 2
- looking for a class to validate franca packages HOT 4
- Exampel Header generator HOT 9
- Bug in Fidl Import HOT 1
- Franca IDL v0.11.1 support
- AST serializer
- fidl_diff.py tool for detecting interface changes
- New error handling system
- CommonAPI DBus mock object generator
- franca_doc.py documentation generation tool HOT 1
- Complex constant support
- Expression support
- unable to extract/associate single line and block comment in fidl parser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyfranca.