I’ve managed to build my first psi trees now. And seen them in the PsiViewer plugin in the host IDEA. It still is a pretty random tree. It simple devides the source into chunks of 10 tokens and then those into chunks of 5. But I’ve managed to make it compile and all. The tricky part was understanding how the whole parsing process works. I’m still not totally clear on this. Also I had trouble getting the psiViewer to view the tree but this was fixed but clicking the buttons randomly then it worked… wierd. I’ve started to try to unit test the psi parser but it’s tricky so far. Will write more about that later.
Advertisement
0 Responses to “First psi tree”