yini-parser
Version:
Node.js parser for YINI — a clean, structured INI alternative with types, simple section nesting, comments, and strict mode.
12 lines (11 loc) • 434 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const print_1 = require("../utils/print");
const parseNullLiteral = (txt) => {
(0, print_1.debugPrint)('-> Entered parseNullLiteral(..)');
if (txt.toLowerCase() !== 'null') {
throw Error('Syntax Error: Unexpected token or character; expected `Null` literal (case-insensitive)');
}
return null;
};
exports.default = parseNullLiteral;