I would have used "subset" ;). I use about 50-60% of the available syntax and 
the other 20% while very nice is also very obscure and proportionately more 
difficult to consider implementing. If I write a proposal it's initial aim 
would likely reflect Perl's Yaml::Lite implementation which matches what most 
people use in everyday situations, or even Spyc which I think supports even 
less.

After that I can think about the remaining syntax few people would actually 
use, and add a binding for Syck which should assuage the concerns of the 
performance monkeys in the community who know the extension exists :).

I'd bet that last 10-20% functionality would take a lot of time to implement in 
comparison to the simpler YAML structures.

Paddy
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


----- Original Message ----
From: Gavin Vess <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Zend Framework General <[email protected]>
Sent: Tuesday, March 20, 2007 10:51:29 PM
Subject: Re: [fw-general] Where's the YAML parser?

Hi Paddy,

Excellent!  If PHP and ZF both include support for JSON ... all the more 
reason to support a YAML parser (i.e. superset with some nice "extras").

Cheers,
Gavin

[EMAIL PROTECTED] wrote:
> -->
> YAML is light on the ground in PHP. Outside the Spyc library which is 
> bundled with Symfony and used for it's own input filtering 
> configuration, I can't think of another native parser. Syck is pretty 
> much standard in Ruby (as Gavin noted), and has bindings for Perl, 
> Python, PHP, etc. Until a standard core extension for YAML appears, a 
> PHP parser is the only reliable means of adding YAML processing to a 
> PHP application without recompiling PHP with Syck.
>
> If nothing pops up from Bruce (who suggested a YAML parser for the ZF 
> per Gavin's email last Summer) in the next few days I'll take a look 
> at what a parser would require. The YAML spec isn't completely off the 
> wall complicated esp. since hierarchy is dictated by simple 
> indentation and the rest should be a simple variable/array type 
> mapping between YAML and PHP based on the YAML syntax characters. The 
> only complicated bit would be managing parenting properly since the 
> format would be processed top to bottom.
>
> I'll see if I have some free time later in the week to look at it in 
> more detail. If I do I'll submit a proposal so there's something to 
> read once the 1.0 release is made and if it's feasible I'll commit 
> some personal time to developing it. I guess if I want it I might as 
> well add it :).
>
> Paddy
>  
> Pádraic Brady
> http://blog.astrumfutura.com
> http://www.patternsforphp.com








 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097

Reply via email to