| | 56 | |
| | 57 | = Sequential Elements |
| | 58 | |
| | 59 | In this chapter we describe the main sequential elements of the language. For the most part these are the same as in C. Primitives dealing with concurrency are introduced in the next chapter. |
| | 60 | |
| | 61 | == Types |
| | 62 | |
| | 63 | === Standard types inherited from C |
| | 64 | |
| | 65 | The `civlc.cvh` defines standard types inherited from C. The boolean type is denoted `_Bool`, as in C. Its values are 0 and 1, which are also denoted by `$false` and `$true`, respectively. |
| | 66 | |
| | 67 | There is one integer type, corresponding to the mathematical integers. Currently, all of the C integer types `int`, `long`, `unsigned int`, `short`, etc., are mapped to the CIVL integer type. |
| | 68 | |
| | 69 | There is one real type, corresponding to the mathematical real numbers. Currently, all of the C real types `double`, `float`, etc., are mapped to the CIVL real type. |
| | 70 | |
| | 71 | Array types, `struct` and `union` types, `char`, and pointer types (including pointers to functions) are all exactly as in C. |
| | 72 | |