Re: BNF to Wisent grammar converter
Brian J Mingus <[email protected]>
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <CAJ=QoBQKSEV4awkXNTgHjDq6XdCJokvD-LdMvcR8hGAnzeikbw@mail.gmail.com> |
I'm interested in a more automagic solution to code indentation (in particular, CoffeeScript). There is the recently released 'wisi' tool that takes a wisent grammar and produces an indentation library although it's not clear to me how complex it will be to use it. The biggest issue I see is that a straightforward BNF -> Wisent converter would result in batch but not incremental parsing, which would be slow for large files, giving a big advantage to heuristic-based systems. Still, I'm not convinced that this problem can't be solved once and for all for all programming languages. Provide a BNF grammar, get an indenter with plenty of options. Why doesn't this exist? On Wed, Sep 10, 2014 at 8:38 PM, Eric M. Ludlam <[email protected]> wrote: > On 09/05/2014 01:56 PM, Brian J Mingus wrote: > >> Hi all, >> >> Where can I find a converter from BNF to the wisent grammar format? >> > > Hi, > > There is no handy converter, though I know several grammars have been > converted by hand with little effort. > > In the good old days there was a pun in CEDET where the .bnf grammar files > were "bovine normal form", but that has long since been removed. > > Creating such a thing would be a fun project for someone. > > Eric > > ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ Cedet-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cedet-devel