Re: [Pyparsing] Success (though minor) was: A newbie w/nested structures
Brought to you by:
ptmcg
From: Tim C. <tim...@gm...> - 2007-09-10 05:30:11
|
Hi Paul, On Sun, 2007-09-09 at 17:46 -0500, Paul McGuire wrote: > Tim - > > By all means, if you have a simplified set of data, then skip the recursion > part. But if you find yourself starting to hand code several "optional" > levels of nesting, then you might revisit the recursive example. When I got > your first e-mail, I just assumed that a recursive approach would be > required. I also downloaded the latest ADL spec, and it has quite a bit > more data types to it than just quoted strings, and these appear to support > nested structure too. > Thanks for taking the time to investigate this further. I will certainly need a more complicated parser then. I have to support the full ADL specs. both 1.4 and 2.0. http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/roadmap.html This is an open source project so if anyone wants to help out with a health care application framework, the help would be very welcome. :-) http://sourceforge.net/projects/oship If anyone would like further info about the project then please email me directly or join the project list at SF. > But if your sample data files that you are working with are not nested, or > not nested too deeply, then I agree with your "keep it simple" approach. There is a growing list of archetypes. http://www.openehr.org/wsvn/knowledge/archetypes/dev/adl/?rev=0&sc=0 Therefore my simple example is just that, simple. I have already run into coding several Optional sections. I must figure out today how to properly exploit Forward(). :-> Cheers, Tim -- Timothy Cook, MSc Health Informatics Research & Development Services http://timothywayne.cook.googlepages.com/home 01-904-322-8582 |