#1041: pmc2c silently ignores bad code
--------------------+-------------------------------------------------------
Reporter: coke | Owner:
Type: todo | Status: new
Priority: normal | Milestone:
Component: build | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
Originally reported in
[http://rt.perl.org/rt3/Ticket/Display.html?id=39313 RT]
Summary of that ticket (quoting allison)
{{{
Pmc2c is just a series of regular expressions. It looks for specific
patterns, and if it finds them, builds relevant C code out of them.
It has no ability to check for arbitrary syntax that *doesn't* match a
pattern. It's a preprocessor (macro substitution), not a language parser.
What could be done is have it dump anything leftover after the
extraction into the resulting C file. Then you'd get a C error on
compilation.
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1041>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets