erde-lang / erde

A programming language that compiles to Lua.
https://erde-lang.github.io
MIT License
40 stars 4 forks source link

Cannot assign to function call result #26

Closed bsuth closed 1 year ago

bsuth commented 1 year ago

Currently, index chain parsing is always marking the entire chain as a function call if a function call is present anywhere. This means that the following fails to parse because the assignment is viewed as a function call:

local a = { b = 1, c = {} }
a.b = () => self.c
a:b().d = 2
bsuth commented 1 year ago

closed by https://github.com/erde-lang/erde/commit/1a9fba5cd589569f49f0751391d435a156f01b68