JamesBoer / Jinx

Embeddable scripting language for real-time applications
https://jamesboer.github.io/Jinx/
MIT License
305 stars 11 forks source link

Function parsing with 'and' separating parameters doesn't parse correctly #13

Closed JamesBoer closed 3 years ago

JamesBoer commented 3 years ago

@Gundolf68 reports the following script fails to compile correctly, and this has been verified.

import core

function the sum of {a} and {b}
    return a + b
end

set x to the sum of 4 and 5
write line x

The function name should take precedence over the and (and other) keywords.

JamesBoer commented 3 years ago

Fixed in v1.2.1