pegisland
Version:
General PEG-based parser supporting island grammars with lake symbols
40 lines • 1.19 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Stats = exports.GrammarInfo = void 0;
// Copyright (C) 2022- Katsumi Okuda. All rights reserved.
class GrammarInfo {
constructor() {
this.isLeftRecursive = false;
this.ruleCount = 0;
this.terminalCount = 0;
this.nonterminalCount = 0;
this.lakeSymbolCount = 0;
this.lakeCount = 0;
this.zeroOrMoreCount = 0;
this.oneOrMoreCount = 0;
this.optionalCount = 0;
this.sequenceCount = 0;
this.orderedChoiceCount = 0;
this.andCount = 0;
this.notCount = 0;
this.rewritingCount = 0;
this.groupingCount = 0;
this.colonCount = 0;
this.colonNotCount = 0;
}
}
exports.GrammarInfo = GrammarInfo;
class Stats {
constructor() {
this.parsingTime = 0;
this.lakeProcessingTime = 0;
this.grammarConstructionTime = 0;
this.totalTextLength = 0;
this.memoAccessCount = 0;
this.memoMissCount = 0;
this.failureCount = 0;
this.grammarInfo = new GrammarInfo();
}
}
exports.Stats = Stats;
//# sourceMappingURL=Stats.js.map