1

I am writing a Plugin for IntelliJ Idea and now I need something like an ASTNode Identifier, it must be unique for every single Node in the AST.

What should I use?

AdrieanKhisbe
  • 3,899
  • 8
  • 37
  • 45
user2988098
  • 81
  • 1
  • 6
  • why do you need unique ID for every AST node? – Dany Dec 12 '13 at 22:29
  • Could you be a bit more specific as to what you need? (I realize this is an older question, but it's considerably incomplete as it is.) – Makoto Sep 20 '14 at 05:14

1 Answers1

2

If you are writing a plugin for a custom language, I would refer to this:

http://confluence.jetbrains.com/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA#DevelopingCustomLanguagePluginsforIntelliJIDEA-ImplementingaParserandPSI

Also, you might consider developing your language plugin using:

https://github.com/JetBrains/Grammar-Kit

sylvanaar
  • 8,096
  • 37
  • 59