The most straight-forward syntax to implement this was f(x) = expression, extending variable assignment. Technically, it does assign something to a variable so it made sense to me.
I ran into a few tricky parts (for example, backtracking in parserState to replace IVAR with IVARNAME) but in the end everything was smoothed out and working well as far as tests go.
The most straight-forward syntax to implement this was
f(x) = expression
, extending variable assignment. Technically, it does assign something to a variable so it made sense to me.I ran into a few tricky parts (for example, backtracking in parserState to replace
IVAR
withIVARNAME
) but in the end everything was smoothed out and working well as far as tests go.