Changes between Version 27 and Version 28 of IR2
- Timestamp:
- 04/28/21 12:27:20 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IR2
v27 v28 12 12 * pure functions? A pure function is a mathematical function of its arguments. It cannot modify the state. 13 13 * state functions? A state function is a function of the current state (including arguments, global variables, ...). It cannot modify the state. Every pure function is a state function. 14 * declarators need parentheses15 14 * `$depends_on` 16 15 * read/write sets: function calls to start, stop monitoring reads/writes? All part of mem library … … 92 91 | '$rel' '<' type-list '>' /* relation: set of n-tuples with specified component types */ 93 92 ; 94 declarator: '*'* ID ('[' ']' | '(' type-list? ')')* ; 95 type-name: type-specifier '*'* ('[' ']' | '(' type-list? ')')* ; 93 declarator '*'* direct-declarator ; 94 direct-declarator: 95 ID /* variable being declared */ 96 | direct-declarator '[' ']' /* array of ... */ 97 | direct-declarator '(' type-list? ')' /* function consuming ... and returning ... */ 98 | '(' declarator ')' 99 ; 100 type-name: ... /* same as declarator but without the ID */ 96 101 type-list: type-name (',' type-name)* ; 97 complete-type-name: type-specifier '*'* ('[' expr ']' | '(' type-list? ')')* ;102 complete-type-name: ... /* same as declarator except '[' expr ']' */ 98 103 99 104 }}}
