Skip to content

Possible disambiguate bug #7

@mathiasbynens

Description

@mathiasbynens
var zeon = new Zeon('a = b <= c ? d : (b >= c + e ? e : b - c)', Zeon.getNewConfig());
zeon.parse();
zeon.startProcess();
zeon.disambiguate();
zeon.btree.map(function(t) {
    return t.value;
}).join(''); // 'a=((b<=c)?d:((b>=(c+e))?e:b-c))'

But…

var zeon = new Zeon('a = b <= c ? d : b >= c + e ? e : b - c', Zeon.getNewConfig());
zeon.parse();
zeon.startProcess();
zeon.disambiguate();
zeon.btree.map(function(t) {
    return t.value;
}).join(''); // 'a=((b<=c)?d:(b>=(c+e))?e:b-c)'

Shouldn’t both return the same string?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions