Kampfkarren / full-moon

A lossless Lua 5.1 parser
Mozilla Public License 2.0
394 stars 52 forks source link

implement table type access modifiers #313

Closed jackdotink closed 1 month ago

jackdotink commented 3 months ago

Implements table type access modifiers:

type foo = {
    read bar: number
    write baz: string,
}
Kampfkarren commented 3 months ago

Need tests for this as well

jackdotink commented 1 month ago

@DataM0del try again because it works for me

DataM0del commented 1 month ago

@DataM0del try again because it works for me

I'll update my Luau version. I wish though that Luau would have a --version command but the PR for that isn't moving because of complaints about how you have to change the version macro value to the current version or etc.

DataM0del commented 1 month ago

image I updated. It works now.

DataM0del commented 1 month ago

@DataM0del try again because it works for me

Actually, it doesn't work because of the trailing comma.