import { Generate } from 'grammar-well/generator';
const js = await Generate(source, {
output: {
name: 'grammar',
format: 'typescript',
artifacts: {
lexer: true,
grammar: true
}
}
});
import { Parse } from 'grammar-well/parse';
import grammar from './my-grammar.js';
Parse(new grammar(), body);