计算机科学 > 程序设计语言
[提交于 2023年1月31日]
标题:Designing text representations for existing data using the TextFormats Specification Language
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要: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.
提交历史
来自:Giorgio Gonnella[v1] 2023年1月31日 星期二 11:03:22 UTC