How to generate a parser with PSI classes via Generate Parser Code from the context menu ?

3.4. Generate a parser

Now when the grammar is defined we can generate a parser with PSI classes via Generate Parser Code from the context menu on Simple.bnf file. This will generate a parser and PSI elements in gen folder. Mark this folder as Generated Sources Root and make sure everything is compiled without errors.

https://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/grammar_and_parser.html#generate-a-parser

 

0
3 comments
Avatar
Permanently deleted user

The problem is actually I can not find Generate Parser Code in my context menu ? Do I need to install any other plugin or something ? 

0
Avatar
Permanently deleted user

Thanks.

0

Please sign in to leave a comment.