radian628 / desmoscript

Desmos scripting language and successor to LISPsmos.
101 stars 8 forks source link

Semicolons after function definition causes all subsequent lines to be ignored #1

Closed Lenny-the-burger closed 1 year ago

Lenny-the-burger commented 1 year ago

The following code:

fn i(v) {
    return A(1-v) + B(v)
};'

P = i (5);

L = 2.0;

results in p and l not being compiled. If the semicolon is removed after i(v) there are no issues.

radian628 commented 1 year ago

This is now fixed--- putting a semicolon after a function now produces an error message. (or at least it should lol)