[phc-general] PHP variable and function
paul.biggar at gmail.com
Mon Feb 13 07:44:00 GMT 2012
Yes, that should be no problem. The Variables are in
MIR:VARIABLE_NAMEs and the operators are contained in Binary_ops. Of
course, the functions contain the basic blocks, not the other way
round, though if you have a basic block, you should have access to the
function which contains it.
As you probably know, scopes don't mean that much at this point, but
we use a naming scheme which includes the call-string up until the
point in the variable names, to signify local or global scope, along
with the context (the call stack) which led to that point.
Hope that helps,
On Sun, Feb 12, 2012 at 22:33, Mahmoud <gh.mdgh at gmail.com> wrote:
> I'd like to get PHP variable and operator and function for each basic
> block according to their scopes.
> Is it possible I access them using basic block structure?
> Thank you very much.
> phc-general mailing list
> phc-general at phpcompiler.org
Check out my startup: http://circleci.com - Continuous Integration made easy!
More information about the phc-general