Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a list of jsts that are part of a compilation of the...something.
- phase 1: watch for cyclical dependencies.
- i.e.
- A imports B but B imports A and so on
- phase 2 is
- understand vtables and data layouts and so forth
- encapsulate it in an ast schema that contains all the information for a vtable and a data layout
- data rep in java (variables of class you designed)
- fill class with stuff you need to know to base phase 2 ast.
- so what that means like the phase 1 ast is used to construct the java file. it sounds like?
- in xtc-demo look up NodeTransformationExample.
- look at addNewNodes
- parses ast, builds a subtree. but yeah look that up as how to build a tree structure with G-nodes
- (use visitors and use xtc to perform the task)
- phase 4 and 5:
- if you can get end-end translation that's good, first few inputs are easy apparently
- syntax for java/c++ is similar
- take java ast to mutate it to c++
- use nodes in java ast you modified to print out implementations
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement