There have been similar questions asked on this forum before (most recent one in June with no result: http://forum.dlang.org/thread/cafmgiz8fyv2a+scqpqteyesfsybznfy--nsxl5rqnowwna4...@mail.gmail.com?page=1), 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.

I'm trying to make a plugin for IntelliJ IDEA to support D (https://github.com/landaire/intelliD 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.

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.

Reply via email to