Arithmetic evaluation: Difference between revisions
Content added Content deleted
(Added Dyalect) |
(→{{header|Tailspin}}: Add type information (sum types conflict with autotyping)) |
||
Line 6,110: | Line 6,110: | ||
=={{header|Tailspin}}== |
=={{header|Tailspin}}== |
||
<lang tailspin> |
<lang tailspin> |
||
def ops: ['+','-','*','/']; |
|||
data binaryExpression <{left: <left>, op: <?($ops <[<=$>]>)>, right: <right>}> |
|||
data left <binaryExpression|"1"> |
|||
data right <binaryExpression|"1"> |
|||
templates leftAssociate |
templates leftAssociate |
||
when <[](1)> do $(1) ! |
when <[](1)> do $(1) ! |