| parrotcode: Untitled | |
| Contents | Language Implementations | Perl6 |

This is a grab-bag of functions that are generally useful during compilation, a haven for refugees from IMCC.pm's madness.
warning is to error as diag is to unimp -- it indicates a possible non-fatal user error.(1,(2,(3,4))) becomes (1 2 3 4).
Yes,
this is undoing what we so laboriously did in Tree.pm turning <leftop:...> sequences into trees.BLOCK at each node of each tree in @trees,
processing parents before children.
The current node will be in $_.BLOCK at each node of each tree in @trees,
processing parents after children.
The current node will be in $_.$type is scalar.$type is a PMC type.
Useful to know when you have to clone something,
and when you can just set it.$expr looks like an array expression.
This is just a guess for now -- if it says something is an array,
then it definitely is,
but if it says no,
the caller should be conservative in the appropriate direction.$a and type $b are compatible.
This is a hack that errs on the conservative side.
|
|
|