Re: Before I dive in. Anyone have a yaml parser? [message #75791] |
Tue, 03 May 2011 10:46 |
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  |
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  |
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  |
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.")
|
|
|