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.
Please sign in to leave a comment.
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 ?
Grammar-Kit https://plugins.jetbrains.com/plugin/6606-grammar-kit
Thanks.