Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为IntelliJ Idea编写一个插件,现在我需要一个类似ASTNode Identifier的东西,它对于 AST 中的每个节点都必须是唯一的。
我应该使用什么?
如果您正在为自定义语言编写插件,我会参考这个:
http://confluence.jetbrains.com/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA#DevelopingCustomLanguagePluginsforIntelliJIDEA-ImplementingaParserandPSI
此外,您可以考虑使用以下方法开发语言插件:
https://github.com/JetBrains/Grammar-Kit