fix mini notation multiline highlight
+ started operator overloading
This commit is contained in:
parent
26fe6c8f61
commit
3b248ae94c
3 changed files with 64 additions and 18 deletions
|
|
@ -32,6 +32,7 @@ Object.assign(globalThis, bootstrapped, Tone, toneHelpers);
|
|||
|
||||
export const evaluate: any = (code: string) => {
|
||||
const shapeshifted = shapeshifter(code); // transform syntactically correct js code to semantically usable code
|
||||
// console.log('shapeshifted', shapeshifted);
|
||||
let evaluated = eval(shapeshifted);
|
||||
if (typeof evaluated === 'function') {
|
||||
evaluated = evaluated();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue