Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: dependencies, first pass at serialization, and more #19

Merged
merged 16 commits into from
Feb 26, 2022

Conversation

klauer
Copy link
Owner

@klauer klauer commented Feb 26, 2022

  • Added dependency store, largely borrowed from an EPICS-focused side project that has an optional blark dependency (whatrecord)
    • Parse project + all dependencies that have source code available
    • Using the summary classes, relatively easily poke around with source code objects
  • Removed unused dataclasses + grammar rules
  • Grammar fixes
    • Functions can return indirect types
    • Added variable attribute flags to blocks where accepted, according to infosys docs
  • Improved code summary utilities
    • Easier to use to find declarations and such
    • Add ProgramSummary, GlobalVariableSummary
    • Base type EXTENDS declarations are wrapped into the derived type
  • Added program and global variables to documentation generation (sphinx domain)
  • Added apischema-based serialization in the test suite
    • This helped improve the type annotations in places as round-tripping validation was failing
    • However, Python 3.9+ with apischema 0.17.5 (did not test other versions) is hitting an infinite loop when attempting to serialize most of the data structures. Serialization testing for those Python versions is disabled for now until I get a chance to dig in / report the issue if it's not on my end
    • Python 3.7 and Python 3.8 are testing serialization with the transformed dataclasses just fine though

@klauer klauer merged commit a4f241a into master Feb 26, 2022
@klauer klauer deleted the enh_deps_and_serialization branch February 26, 2022 00:36
@klauer klauer mentioned this pull request Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove unused grammar rules
1 participant