Changes between Version 101 and Version 102 of IR
- Timestamp:
- 11/30/15 10:01:22 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IR
v101 v102 27 27 28 28 {{{ 29 program: block;29 program: typedef* vardecl* fundef+ ; 30 30 block: '{' typedef* vardecl* fundef* statement* '}' ; 31 31 statement: block | basicStmt ; … … 383 383 * `lib="..."`: function is a system function defined in specified library 384 384 * `guard="...":` the name of the guard function 385 * `main` : this is the program entry point (global scope only) 385 386 386 387 System functions: … … 468 469 == Program == 469 470 470 A program consists of a sequence of global variable declarations, which may include declarations annotated by `input` and `output`, 471 followed by a sequence of function declarations and definitions. 471 A program consists of a sequence of type definitions, followed by a sequence of variable declarations, followed by a sequence of function definitions. This is called the "global scope." 472 473 The variable declarations in the global scope may use the options 472 474 * `input` 473 475 * `output` 476 477 There must be exactly one global function definition with option `main`. This function must consume no inputs and return an `Integer` (check this). 474 478 475 479 == Semantics ==
