(str)
| 16 | //----------------------------------------------------------- |
| 17 | |
| 18 | function cleanString(str) { |
| 19 | let cleaned = str |
| 20 | .replace(/\\n/g, "\n") |
| 21 | .replace(/\\t/g, "\t") |
| 22 | .replace(/\\r/g, "\r") |
| 23 | .replace(/\\"/g, "\"") |
| 24 | .replace(/\\{/g, "{") |
| 25 | .replace(/\\}/g, "}"); |
| 26 | return cleaned; |
| 27 | } |
| 28 | |
| 29 | function toEnd(node) { |
| 30 | if(node instanceof Token) { |