Authors:
gregsh
opensource software

Grammar-Kit

Products: IntelliJ IDEA

Vendor: Gregory 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:

Edit, manipulate, analyze BNF grammars and generate readable parser/PSI code
Downloads: 2931
Rating:
Participated in rating: 1
Version Since Build Until Build File/URL Size (Kb) Date Details
1.1.1. 129. . Download 425.08 2013-03-12 18:20:54 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
. .
7 updates are hidden show all updates
Screenshot #13956

Recent change notes:

1.1.1

  • IDEA Platform 12.1 compatibility

1.1.0

  • Live Preview mode for fast prototyping
  • Live Preview: Highlight Grammar action helps visually debug grammars
  • stubParserClass attribute renamed to parserUtilClass for consistency
  • StubIndex support via stubClass attribute or direct implements/mixin approach

1.0.9

  • Pratt-like expression parsing stabilized
  • No compile errors in generated code on cold start
  • Drop unneeded inheritance checks during parse-time

1.0.8

  • Experimental Pratt-like expression parsing (compact grammars and improved performance)
  • Per-rule elementTypeClass/Factory attribute & empty elementType attribute support
  • CamelCase rule names support and PSI classes calculation fixes
  • Grammar code folding for attribute groups and multiline comments

General usage instructions:

1. Create grammar *.bnf file, see Grammar.bnf in the plugin code. 2. Generate parser/ElementTypes/PSI classes (Ctrl-Shift-G) 3. Add lexer, parser definition & plugin.xml 4. Mix-in resolve and other non-trivial functionality to PSI 5. Tune the grammar, regenerate code. Repeat if needed. You've just build a custom language plugin (Approx. 1 day)

Comments:

gregsh
Rated: noRate
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?
.