(function traceFun() {
const fs = require('node:fs');
const setup = require('./setup');
const { apgLib } = require('apg-js');
const trace = new apgLib.trace();
const stats = new apgLib.stats();
try {
trace.filter.rules.alpha = false;
trace.filter.rules.alphadigit = false;
trace.filter.rules.any = false;
trace.filter.rules.badblankline = true;
trace.filter.rules.badsectionline = true;
trace.filter.rules.badvalueline = true;
trace.filter.rules.blankline = true;
trace.filter.rules.comment = false;
trace.filter.rules.digit = false;
trace.filter.rules.dquotedstring = true;
trace.filter.rules.goodblankline = true;
trace.filter.rules.goodsectionline = true;
trace.filter.rules.goodvalueline = true;
trace.filter.rules.inifile = true;
trace.filter.rules.keyname = true;
trace.filter.rules.lineend = false;
trace.filter.rules.section = false;
trace.filter.rules.sectionline = true;
trace.filter.rules.sectionname = true;
trace.filter.rules.squotedstring = true;
trace.filter.rules.value = true;
trace.filter.rules.valuearray = true;
trace.filter.rules.valueline = true;
trace.filter.rules.wsp = false;
const inputStr = fs.readFileSync('./src/ini-file/bad.txt', 'utf8');
setup(inputStr, trace, stats);
} catch (e) {
console.log();
console.log('input error');
console.dir(e, {
showHidden: true,
depth: null,
colors: true,
});
}
})();