使用TextFormats规约语言设计现有数据的文本表示
Designing text representations for existing data using the TextFormats Specification Language
摘要:
TextData是一个用于高效和用户友好地创建文本格式规范的软件系统,可从多种程序设计语言(C/C++,Python,Nim)和Unix命令行访问。要使用格式,必须创建以文本编辑器的规约语言(TFSL)编写的规范。该规范为格式的每个部分定义了数据库。TextData规范中数据类型定义的语法基于文本表示。因此,该系统非常适合于现有格式的描述。然而,当创建一个新的文本格式来表示现有数据时,用户可以根据值的类型和表示选项使用不同的可能定义。本研究探讨了可能的定义语法的文本的规约语言用于创建标量值(例如字符串,数值,布尔)和复合数据结构(例如数组,映射)的文本表示。分析的结果系统地提出,连同每一种类型的不同的值,可以表示的例子,和使用建议。
英文摘要:
TextFormats is a software system for efficient and user-friendly creation of text format specifications, accessible from multiple programming languages (C/C++, Python, Nim) and the Unix command line. To work with a format, a specification written in the TextFormats Specification Language (TFSL) must be created. The specification defines datatypes for each part of the format. The syntax for datatype definitions in TextFormats specifications is based on the text representation. Thus this system is well suited for the description of existing formats. However, when creating a new text format for representing existing data, the user may use different possible definitions, based on the type of value and the representation choices. This study explores the possible definition syntax in the TextFormats Specification Language to be used for creating text representations of scalar values (e.g. string, numeric value, boolean) and compound data structures (e.g. array, mapping). The results of the analysis are presented systematically, together with examples for each each type of different values that can be represented, and usage advices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。