commit 9fbb276e37125d1e14abbc854b9ad1d7c29f90e0
parent 2b4ece6f99c18df090a127ec20c60ff05cbc0705
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 20 Jan 2017 17:21:53 +0100
change 'b' and 'h' ordering in IL doc
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/il.txt b/doc/il.txt
@@ -109,7 +109,7 @@ starting with the sigil `?`.
`bnf
BASETY := 'w' | 'l' | 's' | 'd' # Base types
- EXTTY := BASETY | 'h' | 'b' # Extended types
+ EXTTY := BASETY | 'b' | 'h' # Extended types
The IL makes very minimal use of types. By design, the types
used are restricted to what is necessary for unambiguous
@@ -125,8 +125,8 @@ by an integer type sufficiently wide to represent all memory
addresses (e.g. `l` on x64). Temporaries in the IL can only
have a basic type.
-Extended types contain base types and add `h` (half word)
-and `b` (byte), respectively for 16 bits and 8 bits integers.
+Extended types contain base types plus `b` (byte) and `h`
+(half word), respectively for 8 bits and 16 bits integers.
They are used in <@ Aggregate Types> and <@ Data> definitions.
For C interfacing, the IL also provides user-defined aggregate