mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-24 16:08:55 +03:00
846c976c63
Since these are a method-like syntax for unary and binary operators (as in fact these are represented as operators in the AST), the nomenclature 'operator call' seems appropriate, at least for now. There is no need yet to introduce notions of associated functions (and constants). The rules explicitly distinguish between unary and binary ones, corresponding to unary and binary operators. This lets us exclude right away calls with too many arguments, and gives us a way to distinguish the two kinds. A trailing comma is allowed at the end of the one argument of binary operator calls, if one is really inclined to use it, just for syntactic consistency with other calls (namely, function calls). |
||
---|---|---|
.. | ||
error-guides | ||
grammar | ||
rfc | ||
compiler-phases.pdf |