For Programmers: Free Programming Magazines  


Home > Archive > Compilers > February 2008 > Data description languge ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Data description languge ?
José Rui Faustino de Sousa

2008-02-01, 7:45 pm

Hi!

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:

The file:

Malcon, John
South Street 3, 92020, CA
ASSET3
343546 $50.60

The XMLish description:

<surname type=char sep="," trim=true><name type=char
trim=true><newline/>
<address type=char sep="," max-len=255><zip type=int fmt=i6><state
type=char len=2><newline/>
<ASSET type=literal ignore-case=false><version type=int><newline/>
if version==1 then #well how to do ifs in XML? ;-)
....
elseif
....

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!

Best regards
Josi Rui

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com