<div dir="ltr">Hi all,<div><br></div><div>Sorry I couldn't make the meeting today.  Here is my update:</div><div><br></div><div><div>This week, I wrote Primitive objects for the 'repeat' and 'start' block.  And I finally implemented the actual python export functionality.  That is, I added a module similar to the one for the Logo export tool.  It takes a stack of blocks, extracts their primitives and converts them into ASTs.  Then it glues the ASTs together in the same way the blocks were combined.  E.g., argument blocks become argument ASTs etc.  Finally, it uses codegen to transform the ASTs into python code.</div>
<div>I decided to use the 'codegen' module, since it lets me get the python code as a string.  (The 'unparse' module would write it directly to a file.)  I also added a menu item for the python export tool to the GNOME version of TA.</div>
<div>I can now export a little block program that draws a square.  Though, the exported code doesn't work yet, since I haven't yet implemented special handling of loops.  (At the moment, a loop is just a call to a loop function.)  That's a task for next week.</div>
</div><div><br></div><div>If you want to take a look at my work, it's in the branch primitive-class of</div><div><a href="https://git.sugarlabs.org/~mzepf/gsoc-python-export">https://git.sugarlabs.org/~mzepf/gsoc-python-export</a><br>
</div><div><br></div><div>Feedback and comments are welcome!</div><div><br></div><div>Marion</div></div>