From 4c77fdc84ba4bcc0f6237e74fc1b2577cda4921e Mon Sep 17 00:00:00 2001 From: erenon Date: Fri, 28 Feb 2020 18:22:06 +0100 Subject: [PATCH] Mserialize doc: move code blocks out of tables To avoid introducing a horizontal scrollbar on mobile devices. --- doc/Mserialize.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/doc/Mserialize.md b/doc/Mserialize.md index c373b1c..1497faa 100644 --- a/doc/Mserialize.md +++ b/doc/Mserialize.md @@ -402,21 +402,27 @@ concatenated tags of the `T...` pack. Variant of T...<t...> void (only to indicate empty state of a variant) 0 Adapted enum E : T { a, b = 123, c} - /t`E'0`a'7B`b'7C`c'\, i.e: -
EnumTag = / UnderlyingTypeTag EnumName Enumerator* \
-UnderlyingTypeTag = b|s|i|l|B|S|I|L
-EnumName = `Typename'
-Enumerator = ValueInHex `EnumeratorName' 
+ /t`E'0`a'7B`b'7C`c'\ (see below) Adapted struct Foo { T1 a; T2 b; } - {Foo`a't1`b't2}, i.e: -
StructTag = { StructName StructField* }
-StructName = `Typename'
-StructField = `FieldName' FieldTag
+ {Foo`a't1`b't2} (see below) +### Type tag of Adapted Enum + + ::= /*\ + ::= b|s|i|l|B|S|I|L + ::= `Typename' + ::= ValueInHex `EnumeratorName' + +### Type tag of Adapted Struct + + ::= {*} + ::= `Typename' + ::= `FieldName' FieldTag + ## Serialized format By default, serializable types are mapped to type tags,