<div dir="ltr">This looks eerily familiar...<div><br></div><div>I took a stab at an Intellij plugin a long time ago, and happened to pick the same name:</div><div><br></div><div><a href="https://github.com/elendel-/intelliD">https://github.com/elendel-/intelliD</a><br></div><div><br></div><div>Been meaning to pick back up again, but haven't had the chance... was waiting for the Eclipse plugin code to mature, then got distracted.  Feel free to take anything that looks useful.</div><div><br></div><div><br></div><div>Brian Schott (Hackerpilot) has done a lot of useful work grammar wise.  See:</div><div><br></div><div><a href="https://github.com/Hackerpilot/DGrammar">https://github.com/Hackerpilot/DGrammar</a><br></div><div><br></div><div>An interesting path to take for an intellij plugin would be to use his DCD/libdparse for all the heavy lifting, with the plugin just farming out the work to external daemon process(es).  That would avoid having yet another lexer/parser implementation to keep up to date.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 3:06 PM, landaire via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There have been similar questions asked on this forum before (most recent one in June with no result: <a href="http://forum.dlang.org/thread/CAFMGiz8Fyv2A+ScQPQtEYEsFSybZNfY--nsxL5rqNoWWNA4agg@mail.gmail.com?page=1" target="_blank">http://forum.dlang.org/thread/<u></u>CAFMGiz8Fyv2A+<u></u>ScQPQtEYEsFSybZNfY--<u></u>nsxL5rqNoWWNA4agg@mail.gmail.<u></u>com?page=1</a>), but I was curious if anyone happens to have a BNF grammar for D laying around. I've searched all over and can't seem to find anything.<br>
<br>
I'm trying to make a plugin for IntelliJ IDEA to support D (<a href="https://github.com/landaire/intelliD" target="_blank">https://github.com/landaire/<u></u>intelliD</a> is what I have now utilizing DDT's lexer) but a lot of what's required to add advanced features like code folding, code completion, etc. is generally autogenerated by JetBrains's Grammar Kit plugin which only generates that stuff from a BNF grammar.<br>
<br>
I know nothing about writing language grammars but based off what I've seen it doesn't look like it'd be *too* difficult to pick up, so if anyone also has suggestions for good readings I'd appreciate that as well.<br>
</blockquote></div><br></div>