Simplified mermaid diagram of the VCard3 parsing logic.

This commit is contained in:
Jonathan Bernard 2023-03-28 15:31:42 +01:00
parent d6d8e1d654
commit 51d80504d6

23
doc/vcard3.mmd Normal file
View File

@ -0,0 +1,23 @@
stateDiagram-v2
[*] --> StartVCard
StartVCard --> ContentLine: "BEGIN VCARD" CRLF
ContentLine --> EndVCard: "END VCARD" CRLF
ContentLine --> Name
Name --> Name: 0-9/a-z/-/.
Name --> Param: SEMICOLON
Name --> Value: COLON
Param --> Value: COLON
Value --> ContentLine: CRLF
state Param {
[*] --> ParamName
ParamName --> ParamName: 0-9/a-z/-/.
ParamName --> ParamValue: "="
ParamValue --> ParamValue: ","
ParamValue --> PText
ParamValue --> Quoted
PText --> PText: SAFE-CHAR
PText --> [*]
Quoted --> Quoted: QSAFE-CHAR
Quoted --> [*]
}