• Can parse this:

    111{a:222{b:333}444}555 ^ ^ | second symbol: "b" first Symbol: "a"

    NOTE: Potentially puts heavy load on GC

    const cb = (typ, symbol, stack, raw, rawIndex) => { console.log(typ, symbol, stack, raw, rawIndex); } const txt = parse("a{b:xxx{c:yyy}zzz}", cb); console.log(txt);

    // output:

    start b [ 'b' ] a 1 start c [ 'b', 'c' ] axxx 4 end c [ 'b' ] axxxyyy 7 end b [] axxxyyyzzz 10 axxxyyyzzz

    Parameters

    • formatedText: any
    • callback: any

    Returns string

Generated using TypeDoc