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

Updates for version, bitflags, bitfield and default tags. #129

Merged
merged 23 commits into from
Sep 30, 2021

Commits on Sep 28, 2021

  1. Configuration menu
    Copy the full SHA
    9aabfc6 View commit details
    Browse the repository at this point in the history
  2. Added code to Bitfield to make it handle Bitflags without error and u…

    …se the correct output type
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    efc61ac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    89404ab View commit details
    Browse the repository at this point in the history
  4. Separated out often-used pattern for getting attributes that can have…

    … different names, and added 'length' and 'width' alias for 'arr1' and 'arr2', respectively.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    fffa37f View commit details
    Browse the repository at this point in the history
  5. Changed version.py generation. It now takes into account that one ver…

    …sion can use multiple games (separated in the xml by a ', ', and that certain versions may be the default for a particular game. It also uses an enum instead of the game name strings.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    b25db12 View commit details
    Browse the repository at this point in the history
  6. Added special case for num attributes in versions, so that values lik…

    …e '10.0.1.0' are converted to their proper integer values (like they are in field attribute conditions)
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    672db76 View commit details
    Browse the repository at this point in the history
  7. Added return to set_game() so that it returns as soon as possible and…

    … defaults are actually respected.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    b898931 View commit details
    Browse the repository at this point in the history
  8. Changed import path replacement to work on platforms that don't use '…

    …\\' as their separator.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    af00e34 View commit details
    Browse the repository at this point in the history
  9. Added (correct) functionality of onlyT and excludeT, where they check…

    … the type of the object that the field is on.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    d685dc9 View commit details
    Browse the repository at this point in the history
  10. Added context argument and property to generated structs and compound…

    …s, so that they can be used when initializing fields.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    4af1ec8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    58658e8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9e8cb50 View commit details
    Browse the repository at this point in the history
  13. Added encoding attribute to XmlParser class, to be used by all genera…

    …ted code (facilitating ≤ from nif.xml).
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    0992777 View commit details
    Browse the repository at this point in the history
  14. Added bitfield/bitflags initialization when used in a struct/niObject…

    … (rather than setting an int).
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    33b1d92 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2555b32 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1e2b09d View commit details
    Browse the repository at this point in the history
  17. Changed bitfield to no longer inherit int (caused problems when right…

    …-adding or other arithmetic operations). Implemented numeric emulation as documented on https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    a1cdf30 View commit details
    Browse the repository at this point in the history
  18. Changed module structure to take precedence over tag type, and apply …

    …to tags other than niobject.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    8a10faf View commit details
    Browse the repository at this point in the history
  19. Pulled module paths up (i.e. module/enum and module/struct instead of…

    … struct/module) and applied them to all tags. Codegen adds __init__.py file to this path where the module attributes are set.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    71687e4 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    afb021b View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    1408e25 View commit details
    Browse the repository at this point in the history
  22. Changed expression evaluation on cond/vercond to be in line with issu…

    …e 73 of nifxml spec: cond is for local variables, vercond for global variables. Updated source xmls accordingly, should not result in a change of generated code (except for nif.xml).
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    9169e01 View commit details
    Browse the repository at this point in the history
  23. Removed argument name_filter, function eval and function map_ from Ex…

    …pression class on Hendrix' recommendation, because they are not used.
    Candoran2 committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    255c3c9 View commit details
    Browse the repository at this point in the history