How to use the oc.js.compileModule function in oc

To help you get started, we’ve selected a few oc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vladfolts / oberonjs / test / test_unit_common.js View on Github external
return setup(function(s){
                oc.compileModule(grammar,
                                 new Stream.Type(s),
                                 new TestContext(language, function(){return module;}));
            });},
        pass,
github vladfolts / oberonjs / test / test_unit_common.js View on Github external
function compileModule(src, language){
    var imported = oc.compileModule(language.grammar, new Stream.Type(src), makeContext(language));
    return imported.symbol().info();
}

oc

A framework for developing and distributing html components

MIT
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis