diff --git a/design/pdl.md b/design/pdl.md index 06075e6..416c72f 100644 --- a/design/pdl.md +++ b/design/pdl.md @@ -4,31 +4,31 @@ PDL allows defining a protocol using HOPP and TAPE. ## Data Types -| Syntax | TN | CN | Description -| -------- | ------- | -: | ----------- -| I5 | SI | | -| I8 | LI | 0 | -| I16 | LI | 1 | -| I32 | LI | 3 | -| I64 | LI | 7 | -| I128[^2] | LI | 15 | -| I256[^2] | LI | 31 | -| U5 | SI | | -| U8 | LI | 0 | -| U16 | LI | 1 | -| U32 | LI | 3 | -| U64 | LI | 7 | -| U128[^2] | LI | 15 | -| U256[^2] | LI | 31 | -| F16 | FP | 1 | -| F32 | FP | 3 | -| F64 | FP | 7 | -| F128[^2] | FP | 15 | -| F256[^2] | FP | 31 | -| String | SBA/LBA | * | UTF-8 string -| Buffer | SBA/LBA | * | Byte array -| [] | OTA | * | Array of any type[^1] -| Table | KTV | * | +| Syntax | TN | CN | Description +| ---------- | ------- | -: | ----------- +| I5 | SI | | +| I8 | LI | 0 | +| I16 | LI | 1 | +| I32 | LI | 3 | +| I64 | LI | 7 | +| I128[^2] | LI | 15 | +| I256[^2] | LI | 31 | +| U5 | SI | | +| U8 | LI | 0 | +| U16 | LI | 1 | +| U32 | LI | 3 | +| U64 | LI | 7 | +| U128[^2] | LI | 15 | +| U256[^2] | LI | 31 | +| F16 | FP | 1 | +| F32 | FP | 3 | +| F64 | FP | 7 | +| F128[^2] | FP | 15 | +| F256[^2] | FP | 31 | +| String | SBA/LBA | * | UTF-8 string +| Buffer | SBA/LBA | * | Byte array +| []\ | OTA | * | Array of any type[^1] +| Table | KTV | * | [^1]: Excluding SI and SBA. I5 and U5 cannot be used in an array, but String and Buffer are simply forced to use their "long" variant.