I searched all over this place but I could not find a definitive answer. Is it possible to take my plugin code (which of course contains a PsiParser) and turn it into a standalone jar which can take a file, parse it and return for instance a string representation of the AST? The library can of course depend on openapi.jar or idea.jar but does something like this always needs a full Idea?
When I look at com.intellij.testFramework.ParsingTestCase, then I see that all kind of stuff is mocked up: the application is initialized, projects, PsiManagers, PsiFileFactory, etc..
Is the parser and the PsiBuilder so deep inside the Idea core, that it is impossible to simply parse a file?