Open okonech opened 3 years ago
Fix the export default syntax for typescript to line up with js grammars.
This allows the old style
`import * as grammar from './grammar';
export const parser = new Parser(Grammar.fromCompiled(grammar));`
as well as allowing nearley-test to actually test the compiled javascript.
Fix the export default syntax for typescript to line up with js grammars.
This allows the old style
`import * as grammar from './grammar';
export const parser = new Parser(Grammar.fromCompiled(grammar));`
as well as allowing nearley-test to actually test the compiled javascript.