Changes between Version 81 and Version 82 of IR2


Ignore:
Timestamp:
05/08/21 20:52:29 (5 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IR2

    v81 v82  
    233233  | expr '?' expr ':' expr  /* if-then-else expression */
    234234  | '$length' '(' expr ')'  /* length of array */
     235  | '$defined' '(' lvalue ')'  /* is the value stored a well-defined value of its type? */
    235236  ;
    236237expr-pair-list: expr-pair (',' expr-pair)* ;
     
    241242* For float types, which rounding mode is used?
    242243* Comparisons likes `==` and `<` return a `$bool` (not an int, like C)
     244* need to think about `$defined`.   How can you allocate an array and have all cells undefined?
    243245
    244246=== Allowed Casts ===