Authors:
gregsh
opensource software

Grammar-Kit

Products: IntelliJ IDEA

Vendor: Greg Shrago

Email:

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

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

License: http://www.apache.org/licenses/LICENSE-2.0

Bugtracker page

Forum page

Description:

BNF Grammars and JFlex lexers editor. Readable parser/PSI code generator.
Downloads: 11101
Rating:
Participated in rating: 3
Version Since Build Until Build File/URL Size (Kb) Date Details
1.1.10_13. 135.1230. 138. Download 627.8 2014-08-08 19:27:21 details
1.1.10. 138.1029. . Download 628.44 2014-08-04 22:04:39 details
1.1.9. 135.1220. 138. Download 622.31 2014-07-18 23:10:48 details
1.1.7. 133.696. . Download 612.71 2014-02-03 19:38:45 details
1.1.5. 133.93. . Download 596.09 2013-11-26 18:58:09 details
1.1.4. 130.1365. . Download 590.83 2013-09-13 03:03:14 details
1.1.2. 129. . Download 450.5 2013-05-24 18:16:46 details
1.1.0. 123.45. . Download 446.05 2013-02-12 03:52:42 details
1.0.9. 116.108. . Download 335.07 2012-10-05 18:38:37 details
1.0.3. 111.222. . Download 231.99 2012-02-02 17:26:45 details
1.0.1. 111.14. . Download 209.7 2011-12-16 17:20:42 details
. .
9 updates are hidden show all updates
Screenshot #14648

Recent change notes:

1.1.10

  • GPUB: improve error reporting in some cases
  • Generator/Editor: performance fix
  • JFlex: treat %eof{ return; case as forced comment instead of error
Full change log...

General usage instructions:

1. Create grammar *.bnf file, see grammars/Grammar.bnf in the plugin code

2. Tune the grammar using Live Preview + Structure view (ctrl-alt-P / meta-alt-P)

3. Generate parser/ElementTypes/PSI classes (ctrl-shift-G / meta-shift-G)

4. Generate lexer *.flex file and then run JFlex generator (both via context menu)

5. Implement ParserDefinition and add the corresponding registrations to the plugin.xml

6. Mix-in resolve and other non-trivial functionality to PSI

Comments:

ligasgr
Rated:
2013-11-23 05:20:15
Thanks for this great plugin! It makes development of custom language parsers so much easier!
.
nicoulaj
Rated:
2013-08-20 18:57:56
Very helpful.
.
gregsh
2011-12-16 17:28:35
Thank you. Left-recursion detection is added to 1.0.1 version.
.
wallaby
Rated:
2011-12-15 15:28:43
Thanks for the plugin, it's a very helpful plugin to simplify the development of custom parsers.
The generator accepts left-recursive rules, which do not make sense in PEG parsers (afaik). Is it possible to highlight this type of rules in the .bnf editor?
.