comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Before I dive in. Anyone have a yaml parser?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Before I dive in. Anyone have a yaml parser? [message #75791] Tue, 03 May 2011 10:46
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Ha! I thought YAML stood for "Yet Another Markup Language"! :o)

Why not use XML? A while back I used YAML to specify input in ruby for generating Fortran95/2003 boilerplate code and,
as my input data structure grew more complicated, the YAML file became quite difficult for a human to parse (or create.
"Don't forget the '-' after the indent"-type of thing)

XML solved that.

And IDL has an XML parser already I believe.

Anyhoo....

cheers,

paulv


Matt wrote:
> So anyone out there have a yaml parser for IDL? Just curious as we're
> starting to use those for our configurations and I thought if someone
> had it built, I wouldn't have to do it myself.
>
> If you don't know yaml: http://www.yaml.org/
>
>
>
> Thanks
> Matt
Re: Before I dive in. Anyone have a yaml parser? [message #75792 is a reply to message #75791] Tue, 03 May 2011 10:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> OK, I read that page and I still don't get it.
> What is the world is "data serialization"? My
> problem, I guess, is that English doesn't appear
> to be my native language. :-(

OK, I got lost again at the "pointer swizzling" part,
although I *do* like the name of the concept a lot. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Before I dive in. Anyone have a yaml parser? [message #75793 is a reply to message #75792] Tue, 03 May 2011 10:23 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 5/3/11 11:06 AM, David Fanning wrote:
> Matt writes:
>
>> So anyone out there have a yaml parser for IDL? Just curious as we're
>> starting to use those for our configurations and I thought if someone
>> had it built, I wouldn't have to do it myself.
>>
>> If you don't know yaml: http://www.yaml.org/
>
> OK, I read that page and I still don't get it.
> What is the world is "data serialization"? My
> problem, I guess, is that English doesn't appear
> to be my native language. :-(

Data serialization for IDL is just being able to store IDL variables so
that they can be restored later in exactly the same state, like IDL .sav
files.

http://en.wikipedia.org/wiki/Data_serialization

YAML is a human-readable, cross-language specification for the files,
i.e., store scalars this way, structures this way, etc. YAML is
implemented in many languages.

http://en.wikipedia.org/wiki/Yaml

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
Re: Before I dive in. Anyone have a yaml parser? [message #75794 is a reply to message #75793] Tue, 03 May 2011 10:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matt writes:

> So anyone out there have a yaml parser for IDL? Just curious as we're
> starting to use those for our configurations and I thought if someone
> had it built, I wouldn't have to do it myself.
>
> If you don't know yaml: http://www.yaml.org/

OK, I read that page and I still don't get it.
What is the world is "data serialization"? My
problem, I guess, is that English doesn't appear
to be my native language. :-(

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Before I dive in. Anyone have a yaml parser?
Next Topic: Alpha blending with object graphics - different color palettes do not work

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 06:26:16 PDT 2025

Total time taken to generate the page: 1.11990 seconds