Allow binary operators to be used as lambdas #876

Merged
ghallak merged 7 commits from ghallak/228 into master 2022-06-03 18:12:24 +09:00
Showing only changes of commit 8851629fc7 - Show all commits

View File

@ -476,7 +476,7 @@ binop_as_lam() ->
BinOps = ['&&', '||', BinOps = ['&&', '||',
'+', '-', '*', '/', '^', 'mod', '+', '-', '*', '/', '^', 'mod',
'==', '!=', '<', '>', '<=', '=<', '>=', '==', '!=', '<', '>', '<=', '=<', '>=',
'..', '::', '++', '|>'], '::', '++', '|>'],
OpToLam = fun(Op = {_, Ann}) -> OpToLam = fun(Op = {_, Ann}) ->
IdL = {id, Ann, "l"}, IdL = {id, Ann, "l"},
IdR = {id, Ann, "r"}, IdR = {id, Ann, "r"},