On Saturday, 27 October 2018 at 14:21:51 UTC, Michelle Long wrote:
What would be really cool if one could have an autogrammar
generator! Somehow it looks at text and figures out the
grammar. Might require some human interaction but can figure
out the rules that will generate the specific grammars. Maybe
neural net could do it? Train it enough and it could be fairly
accurate and a human just has to fix up small cases.
e.g., get a few million lines of C++ source code, pass in to
the generator and it pops out a grammar for it! Should be
possible since it's usually 1 to 1(for peg grammars at least).
Something like eclipse's xtext would be nice, parts of the
grammar are attached to OOP features in the code.