#1644: [RFC] Text format serializer for PASM/PIR constants
----------------------+-----------------------------------------------------
Reporter: plobsing | Owner:
Type: RFC | Status: new
Priority: normal | Milestone:
Component: imcc | Version: 2.3.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
This would allow the freezing and thawing of arbitrary constants that can
be held in PBC to and from PIR/PASM.
Attached is a proof of concept PMC to acheive the
serialization/deserialization. Currently it only serializes, but it is
based on the ImageIO API for object serialization/deserialization and
mostly reuses existing tokens from PIR/PASM, so the deserializatoin
shouldn't be terribly difficult.
New syntax would also have to be added to demarkate the beginings and ends
of constant sections as well as to use constants in code sections. Perhaps
'.begin_data(123)', '.end_data', and '$C123'.
I haven't put much work into what the punctuation should be and I'm not
quite happy with it yet. I'd appreciate advice in this area especially.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1644>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets