<ahref="https://en.wikipedia.org/wiki/S-Expression"title="wp: S-Expression"target="_blank">S-Expressions</a> are one convenient way to parse and store data.
For this, the reader need not recognize "<tt>\</tt>" for escaping, but should, in addition, recognize numbers if the language has appropriate data types.
Note that with the exception of "<tt>()"</tt>" ("<tt>\</tt>" if escaping is supported) and whitespace there are no special characters. Anything else is allowed without quotes.
and turn it into a native data structure. (See the <ahref="https://rosettacode.org/wiki/S-Expressions#Pike"title="#Pike"target="_blank">Pike</a>, <ahref="https://rosettacode.org/wiki/S-Expressions#Python"title="#Python"target="_blank">Python</a> and <ahref="https://rosettacode.org/wiki/S-Expressions#Ruby"title="#Ruby"target="_blank">Ruby</a> implementations for examples of native data structures.)
testString: assert.deepEqual(parseSexpr(basicSExpr), basicSolution, "<code>parseSexpr('(data1 data2 data3)')</code> should return an array with 3 elements");