Skip to content

LIRA IR serialization enhancement - #17

Merged
uslsteen merged 13 commits into
masterfrom
arch-serialization
Sep 9, 2026
Merged

uslsteen merged 13 commits into
masterfrom
arch-serialization

Conversation

@uslsteen

@uslsteen uslsteen commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@uslsteen uslsteen added enhancement New feature or request Python3 Relates to python3 LIRA Lirbrary Serialization Issue relates to serialization Library Issue relates to LIRA library labels Sep 8, 2026
@uslsteen uslsteen changed the title LIRA IR serializaion enhancement LIRA IR serialization enhancement Sep 8, 2026
@uslsteen
uslsteen force-pushed the arch-serialization branch 2 times, most recently from 4513405 to 41df635 Compare September 8, 2026 12:42
Supported typed operation construction for deserialized Operation objects:

* Operations registry auto-populated via __init_subclass__
from the `op_base` ClassVar declared on each typed operation class

* `BaseOp` vocabulary converted to a str-based enumerate

* Method from_operation() rebuilds typed operations
and preserves attributes, semantic
 function and table fields;
YAML serialization invokes it when
 deserializing `Operation` entries.
* Add unit-tests on typed operations serialization
* Add unit-tests statement kinds check

@belovdv belovdv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me.

Comment thread python/lira/ir_ops.py Outdated
Comment thread python/lira/ir_ops.py Outdated
Comment thread python/lira/ir_ops.py Outdated
Comment thread python/lira/ir_ops.py Outdated
Comment thread python/lira/ir_ops.py Outdated
Comment thread python/lira/ir_ops.py
Comment thread python/lira/ir_ops.py Outdated
@uslsteen
uslsteen merged commit c488727 into master Sep 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Library Issue relates to LIRA library Python3 Relates to python3 LIRA Lirbrary Serialization Issue relates to serialization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants