Support multi-threading

This commit is contained in:
Leszek Swirski 2018-02-01 10:53:26 +00:00
commit ab0a3bb4be
7 changed files with 173 additions and 90 deletions

View file

@ -205,8 +205,10 @@ export function parseMI(output: string): MINode {
let oldContent = output;
let canBeValueList = output[0] == '[';
output = output.substr(1);
if (output[0] == '}' || output[0] == ']')
if (output[0] == '}' || output[0] == ']') {
output = output.substr(1); // ] or }
return [];
}
if (canBeValueList) {
let value = parseValue();
if (value) { // is value list