S-expressions: Difference between revisions
Content added Content deleted
m (→JavaScript :: Functional: Some reduction and tidying.) |
|||
Line 3,779: | Line 3,779: | ||
return 0 < residue.length ? ( |
return 0 < residue.length ? ( |
||
`Unparsed tokens: ${JSON.stringify(residue)}` |
`Unparsed tokens: ${JSON.stringify(residue)}` |
||
) : [ |
) : 0 < parse.length ? ([ |
||
JSON.stringify(parse, null, 2), |
JSON.stringify(parse, null, 2), |
||
"Reserialized from parse:", |
"Reserialized from parse:", |
||
parse.map(serialized).join(" ") |
parse.map(serialized).join(" ") |
||
].join("\n\n"); |
].join("\n\n")) : "Could not be parsed"; |
||
}; |
}; |
||