Re: [CEDET-devel] BNF to Wisent grammar converter
Brought to you by:
zappo
From: Brian J M. <bri...@co...> - 2014-09-11 04:36:15
|
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 <er...@si...> 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 > > |