Today we are talking about the following: I am developing a code generator for my faculty at the university. It is very simple: they want to use a custom “scripting” language that is really human-readable, parse it, and then translate these instructions into Java. I used SableCC to do the trick, it was really smooth. Now the problem is that I need to create a plug-in editor for Eclipse, mainly for syntax with high significance and, possibly, to detect validation errors.
I found many tutorials on how to create a custom editor in Eclipse, but I can’t understand: have I already created my parser and my own scanner? It is absurd to do it again for the editor. Is there a way to integrate my scanner inside the plugin? Which class should be extended or implemented? Can you offer any tutorial?
source
share