zayfod / pyfranca

A Python module and tools for working with Franca interface definition language (IDL) models.
MIT License
19 stars 13 forks source link

improve Franca IDL support #13

Closed jb090979 closed 7 years ago

jb090979 commented 7 years ago

Hi Kaloyan,

this branch contains all my changes. There a lot of change s and I hope that it is not too complex and you are able to understand my changes. Please check my changes.

it contains the following changes:

support structured comments

fix fidl import
    each namespace got a list of vissible namespaces corresponding the import directive. This list is used to determine the type references
    now it is possible ti import complex chain of fidl files
    this result in alot of changes im the processor code, espacially determing the symbol references. But I thin so it work as pyfranca user would expect.

support hex intger values for cinstants and enumerations
    franca 0,9.2 do not support hex integer. I extend the franca syntax. As I read in the franca project. Newer Version also support hex integer values

fix some smaller bug in fidl import
    now all path are normalized before using --> path compare works correctly
zayfod commented 7 years ago

Thanks for your work. You have progressed a lot.

I plan to take the changes but I will cherrypick and merge them one by one over a period of several days. This will allow me to understand the details.

Are you OK with this?

jb090979 commented 7 years ago

that fine to me. Please let me know if my implementation of hex integer or structured comment doesn't match you conception.

zayfod commented 7 years ago

I just cherrypicked and integrated the hexadecimal literal support with minor modifications:

Feedback is welcome.

zayfod commented 7 years ago

I integrated the structured comment support also. am quite excited about this - thanks @jb090979 !

Again, feedback is welcome.

jb090979 commented 7 years ago

thanks for merging.

Your additional changes are a good improvement. I like it.

zayfod commented 7 years ago

Just integrated the support for structured comments in fidl_dump.py - nice!

zayfod commented 7 years ago

I merged one more fix, related to nested imports and the relevant test cases. Many thanks for the temporary file creation - very handy!

I did not merge the whole commit 890e86ec061cffdfd0b5f30c7e285b1d8b325d81 as I am not entirely clear about its purpose. By design references should take care of namespace handling. If I have missed anything, let's handle it with separate issues and pull requests.

I am preparing the v0.4.0 release now with all your contributions.

jb090979 commented 7 years ago

Thanks for merging. But there are still some bugs open. I will create serperate pull request for each bug the next days.