You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
320 B
JavaScript
19 lines
320 B
JavaScript
"use strict";
|
|
|
|
const isGenerator = require("is-generator-function");
|
|
const yieldcore = require("../yieldcore");
|
|
|
|
module.exports = {
|
|
create: function createParserCore(rootRule) {
|
|
let core = yieldCore(rootRule, {
|
|
onYield: (rule) => {
|
|
if (isGenerator(rule)) {
|
|
// Ignore?
|
|
} else {
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
};
|