FA-217 / Parsing / Member archive
A separator inside nested brackets splits the outer list · case 02
A comma inside a nested expression becomes a top-level boundary, or mismatched brackets pass unchecked.
Case contract
Split a comma-separated expression into trimmed top-level fields using (), [], and {} nesting. Preserve empty fields, return [] for an empty string, and return None for mismatched or unclosed brackets. Quotes and escapes have no special meaning in this restricted grammar.
Why this case matters
Command and configuration mini-languages often embed collections inside argument lists. Typed nesting is needed even before adding full expression parsing.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| nested parentheses | ["((a", "b))", "tail"] | ["((a,b))", "tail"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗