|Data description languge ? email@example.com (Josť Rui Faustino de Sousa) (2008-01-31)|
|From:||"Josť Rui Faustino de Sousa" <firstname.lastname@example.org>|
|Date:||Thu, 31 Jan 2008 23:13:30 -0000|
|Posted-Date:||01 Feb 2008 20:43:28 EST|
Does anyone know of some kind of data description language?
Not in the SQL sense (I think) but more like a glorified format
descriptor with if blocks, do blocks, etc...
Some way to describe a general file format (not necessarily binary) so
that the data could be read and written by any program with the parsing
of the data abstracted from the program.
What I want is a language to describe a general file. Something like:
South Street 3, 92020, CA
The XMLish description:
<surname type=char sep="," trim=true><name type=char
<address type=char sep="," max-len=255><zip type=int fmt=i6><state
<ASSET type=literal ignore-case=false><version type=int><newline/>
if version==1 then #well how to do ifs in XML? ;-)
I hope this half backed notation passes the idea.
Something that let's people that define the format write the format
description and the people who use the data just worry about whatever
their doing with it and not with parsing.
And if some different file format is need to be read just write a new
description no need to touch the code.
It seamed a somewhat basic objective I was somewhat amazed that I could
only find ESML http://esml.itsc.uah.edu/ and a few others.
Are there any others?
Am I looking under the wrong keywords? (Is it really, like I expect,
something obvious and I am just searching under the wrong nomenclature)
Thank you very much!
Return to the
Search the comp.compilers archives again.