bang function call

This commit is contained in:
leaf corcoran 2011-06-20 20:35:05 -07:00
parent 17184f2aa8
commit 96abc5986e
3 changed files with 17 additions and 2 deletions

View File

@ -306,7 +306,7 @@ local build_grammar = wrap(function()
Callable = Name + Parens / mark"parens", Callable = Name + Parens / mark"parens",
Parens = sym"(" * Exp * sym")", Parens = sym"(" * Exp * sym")",
FnArgs = symx"(" * Ct(ExpList^-1) * sym")", FnArgs = symx"(" * Ct(ExpList^-1) * sym")" + sym"!" * -P"=" * Ct"",
-- chain that starts with colon expression (for precedence over table literal) -- chain that starts with colon expression (for precedence over table literal)
ColonChain = ColonChain =

View File

@ -167,4 +167,14 @@ what whack - 5
x = hello - world - something x = hello - world - something
hello!
hello.world!
hello!.something
what!["ofefe"]
what! the! heck!

View File

@ -124,3 +124,8 @@ what(whack + 5)
_ = 5 - what(wack) _ = 5 - what(wack)
what(whack - 5) what(whack - 5)
x = hello - world - something x = hello - world - something
hello()
hello.world()
_ = hello().something
_ = what()["ofefe"]
what()(the()(heck()))