<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 30, 2015 at 6:12 AM, Gautier DI FOLCO <span dir="ltr"><<a href="mailto:gautier.difolco@gmail.com" target="_blank">gautier.difolco@gmail.com</a>></span> wrote:<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have two main goals:<br> * print the signification of each bytecodes (a more explicit one than the hexadecimal value of the bytecode)<br> * Do some analysis on it, spot patterns, apply markov model on it and so on.</div></blockquote></div><br></div><div class="gmail_extra">Work backwards, a piece at a time.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">The output of parsing is a piece of structured data. So you need to design your data type. Start with the bare minimum. Write the pretty printing code. What do the type signatures of your analysis functions look like? <br><br>E.g. "Apply markov model" is way too vague. <br><br>The key thing is to iterate and improve on the design of your data type.<br><br></div><div class="gmail_extra">Once the data type looks good, the implementation of parsing becomes clear as day.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">-- Kim-Ee</div></div>
</div></div>