Advertisement
Guest User

Untitled

a guest
Oct 20th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. a list of jsts that are part of a compilation of the...something.
  2.  
  3. phase 1: watch for cyclical dependencies.
  4.  
  5. i.e.
  6. A imports B but B imports A and so on
  7.  
  8. phase 2 is
  9. understand vtables and data layouts and so forth
  10. encapsulate it in an ast schema that contains all the information for a vtable and a data layout
  11.  
  12. data rep in java (variables of class you designed)
  13. fill class with stuff you need to know to base phase 2 ast.
  14. so what that means like the phase 1 ast is used to construct the java file. it sounds like?
  15.  
  16. in xtc-demo look up NodeTransformationExample.
  17.  
  18. look at addNewNodes
  19. parses ast, builds a subtree. but yeah look that up as how to build a tree structure with G-nodes
  20.  
  21. (use visitors and use xtc to perform the task)
  22.  
  23. phase 4 and 5:
  24. if you can get end-end translation that's good, first few inputs are easy apparently
  25. syntax for java/c++ is similar
  26. take java ast to mutate it to c++
  27. use nodes in java ast you modified to print out implementations
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement