Method and system for analyzing and editing YAML file and reserving all formats and annotations

The invention relates to a method and a system for analyzing and editing a YAML file and reserving all formats and annotations, and the method comprises the following steps: reading a YAML configuration file according to rows, and storing a piece of character string data in a character string list i...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: OH JI-WOONG, XU CHUNMEI, LIN ZUWEN, XU SHIHUI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to a method and a system for analyzing and editing a YAML file and reserving all formats and annotations, and the method comprises the following steps: reading a YAML configuration file according to rows, and storing a piece of character string data in a character string list in each row; traversing each row of data in the character string list, analyzing Key values, Value values and associated formats and annotations, respectively packaging the Key values, the Value values and the associated formats and annotations into independent node entities, and storing the independent node entities in a node entity list; performing required operation on corresponding node entity data in the node entity list according to needs to obtain an operated node entity list; and traversing each node entity in the operated node entity list, and restoring each node entity, including restoring the format and annotation associated with each node entity based on a node restoration format rule, so as to regenerat