static define(spec) {
        let data = defineLanguageFacet(spec.languageData);
        return new LRLanguage(data, spec.parser.configure({
            props: [languageDataProp.add(type => type.isTop ? data : undefined)]
        }));
    }
/**
    Define a language from a parser.
    */
Define a language from a parser.
Define a language from a parser .
static define(spec) {
        let data = defineLanguageFacet(spec.languageData);
        return new LRLanguage(data, spec.parser.configure({
            props: [languageDataProp.add(type => type.isTop ? data : undefined)]
        }));
    }
static define ( spec ) { let data = defineLanguageFacet ( spec . languageData ) ; return new LRLanguage ( data , spec . parser . configure ( { props : [ languageDataProp . add ( type => type . isTop ? data : undefined ) ] } ) ) ; }
Define a language from a parser.
Define a language from a parser .