sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

parser support for immediately invoked function expressions #491

Open TwitchBronBron opened 4 years ago

TwitchBronBron commented 4 years ago

BrightScript supports IIFE right now! However, they cause errors in the parser. Here's a few examples:

result = function(message)
    return message
end function("it works")

print (function(message)
    return message
end function)("it works")