Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function Object Precedence
#2
Yes, the lower the higher the importance.

But to decompile this you don't need to know the operator's precedence at all. The compiler will write the bytecodes is the necessary order, so all you have to do is add a ( ) between each binary operator output, so for example if "+" comes first in the bytecodes sequence then we can assume this has higher importance, so we can write (LeftExpression + RightExpression), the next operator is * where (...) is the left and 4 the right expression, we don't have to add the parentheses here because there's no need for it as the left expression was already parenthesized.

Also why make your own decompiler? a complete decompiler is more work than you think Wink UE Explorer has about 30k lines of code.

Edit: I think I made a mistake though, it might be that the multiplier appears first then you can assume anything of the left and right expression that is also a binary operator to be parenthesized. (Been a while so I might make wrong assumptions)
Reply


Messages In This Thread
Function Object Precedence - by ELiZ - 06-15-2013, 07:02 PM
RE: Function Object Precedence - by eliot - 06-17-2013, 07:08 AM
RE: Function Object Precedence - by ELiZ - 06-18-2013, 03:45 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)