UNPKG

yini-parser

Version:

Node.js parser for YINI — a clean, structured INI alternative with types, simple section nesting, comments, and strict mode.

37 lines (32 loc) 1.24 kB
"use strict"; /* A Full Nested Linear Branch - (in tree data structures): - A branch in a tree where each section has at most one nested section at each level (never more at each level). - Forms a straight path: each section (node) has exactly one nested section, and this continues through multiple levels—like a linked chain. - If a section has a nested section, the nesting must form a direct sequence. For example: Section level 3 → Section level 4 → Section level 5, and so on. - Can be any branch within a tree (not just the root), or even the whole tree in some cases. - Each section includes its own members at that level. - Represents a single path from the starting section to the last (deepest) nested section. - In other words, it’s a branch that forms a continuous, unbranched sequence of nested sections. Example: " ^ Section1 sValue = 1 ^^ Section11 sValue = 11 bValue = OFF ^ Section2 sValue = 2 " Has two Nested Linear Branches: 1: ^ Section1 sValue = 1 ^^ Section11 sValue = 11 bValue = OFF 2: ^ Section2 sValue = 2 */ Object.defineProperty(exports, "__esModule", { value: true });