Git Product home page Git Product logo

Comments (4)

zayfod avatar zayfod commented on May 26, 2024

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.

jb090979 avatar jb090979 commented on May 26, 2024

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.

zayfod avatar zayfod commented on May 26, 2024

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.

zayfod avatar zayfod commented on May 26, 2024

Released with v0.3.0 .

from pyfranca.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.