Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion GlowScriptOffline/glowscript_libraries/compiler.3.2.min.js

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions lib/compiling/GScompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,19 +391,6 @@ where compile() was called, in untrusted/run.js.
case "}":
if (fstring && braces) braces--
break
case "-":
// Change -a to -1*a so that -a**.5 cases are correctly changed to -(a**.5), not (-a)**.5
// But check for 3e-5 or 3E-5, which should not be modified, and the form a -= x.
// Also 10**-2 should be .01, not 0.2.
if (!(singlequote || doublequote || triplequote)) {
if ( !( ((line[i-1] == 'E' || line[i-1] == 'e') && !isNaN(line[i+1])) ||
(line[i-1] == '*' && line[i-2] == '*') ||
line[i+1] == '=' ) ) {
line = line.slice(0,i+1)+'1*'+line.slice(i+1)
i += 2
}
}
break
case "'":
case '"':
if (i > 0 && line[i-1] == 'f') fstring = true
Expand Down
2 changes: 1 addition & 1 deletion package/RScompiler.3.2.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package/compiler.3.2.min.js

Large diffs are not rendered by default.