WSL should support while loops
Created attachment 320230 [details]
Created attachment 320246 [details]
Comment on attachment 320246 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=320246&action=review
> + //memoTable.set(this, returnValue);
Because Evaluator is a Visitor, the memo table doesn't work when evaluating, because while loops' conditions need to actually be evaluated each time. Fil: Do you know a way to solve this?
Created attachment 320285 [details]
Created attachment 320406 [details]
Created attachment 320408 [details]
Created attachment 320409 [details]
Comment on attachment 320409 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=320409&action=review
> + return "Break";
Lowercase is better since that’s what te language does.
> + throw new Error("Trying to negate something with no type: " + node.conditional);
I don’t think negation is what is going on here.
Committed r221842: <http://trac.webkit.org/changeset/221842>
*** Bug 176263 has been marked as a duplicate of this bug. ***
Migrated to https://github.com/gpuweb/WHLSL/issues/146