#817: [pmc2c] don't require custom #defines for private flags
-------------------+--------------------------------------------------------
Reporter: cotto | Owner:
Type: cage | Status: new
Priority: minor | Milestone:
Component: none | Version:
Severity: low | Keywords: pmc2c, newbie, cage
Lang: | Patch:
Platform: |
-------------------+--------------------------------------------------------
It'd be nice if pmc2c didn't require that custom private PObj flags be
#defined, but rather provided a way to declare them as part of the pmclass
declaration. The syntax could look something like this:
{{{
pmclass FooClass
group FooGroup
extends FooBase {
ATTR PMC *foo;
ATTR INTVAL *bar;
FLAG FOO_IS_HAVING_A_GOOD_DAY;
FLAG FOO_IS_WEARING_YELLOW;
}}}
This would be a good introductory task for someone wanting to get into
Parrot since it's not urgent and wouldn't cause any compatibility breaks.
The majority of the code that would need to be changed is in
lib/Parrot/Pmc2c/Parser.pm and lib/Parrot/Pmc2c/PMCEmitter.pm .
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/817>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets