@ -66,7 +66,7 @@ PEG.compiler.checks = [
grammar:
function(node, appliedRules) {
for (var name in node.rules) {
check(ast.rules[name], appliedRules);
check(node.rules[name], appliedRules);
}
},
@ -32,7 +32,7 @@ PEG.compiler.passes = [
function(node, from, to) {
replace(ast.rules[name], from, to);
replace(node.rules[name], from, to);