Skip to content

Commit

Permalink
Skulpt fixes, remove parsing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
acbart committed Sep 12, 2019
1 parent eab62ef commit 378b593
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
10 changes: 9 additions & 1 deletion static/libs/blockpy/blockpy.css

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions static/libs/blockpy/blockpy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/libs/skulpt/skulpt-stdlib.js

Large diffs are not rendered by default.

12 changes: 1 addition & 11 deletions static/libs/skulpt/skulpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -28874,16 +28874,8 @@ function makeParser (filename, style) {
return p;
}

Sk.parseCache = {
"lastInput": null,
"lastParse": null,
"lastUnit": null
};

Sk.parse = function parse (filename, input) {
if (Sk.parseCache.lastInput == input) {
return Sk.parseCache.lastUnit;
}

var T_COMMENT = Sk.token.tokens.T_COMMENT;
var T_NL = Sk.token.tokens.T_NL;
Expand Down Expand Up @@ -28957,8 +28949,6 @@ Sk.parse = function parse (filename, input) {
* Small adjustments here in order to return th flags and the cst
*/
var result = {"cst": parser.rootnode, "flags": parser.p_flags, "comments": parser.comments};
Sk.parseCache.lastUnit = result;
Sk.parseCache.lastInput = input;
return result;
};

Expand Down Expand Up @@ -35093,7 +35083,7 @@ var Sk = {}; // jshint ignore:line

Sk.build = {
githash: "b358af4824d08ce74dc6dd9bfffe9df9d619f806",
date: "2019-09-12T04:21:23.623Z"
date: "2019-09-12T07:09:03.833Z"
};

/**
Expand Down

0 comments on commit 378b593

Please sign in to comment.