From: why t. l. s. <yam...@wh...> - 2003-03-11 06:12:14
|
Simon Willison (si...@in...) wrote: > > It would seem that there's a PHP module-based implementation on the way > in the form of Syck. However, as a huge number of PHP users are on a > shared hosting account with no capability to modify their installation I > think a "pure" PHP implementation would be a very useful thing to have. > One quick note about that: I will be providing shared libraries for PHP users. <? dl( 'syck.so' ); ?> So I think Ingy's comment about allowing swappable parsers can also be phrased: <? @dl( 'syck.so' ); if ( extension_loaded( 'syck' ) ) { SimonsYaml::set_load_function( 'syck_load' ); } else { SimonsYaml::set_load_function( 'simons_yaml_load' ); } ?> > 3. Is there any reason a PHP implementation hasn't been tried yet? Am I > likely to fall in to any gaping holes? Interoperability will be tougher, but not horrible. I would use the testing suite as your guide as you build. It will drive you to adhere to as much of the spec as you can. http://wiki.yaml.org/yamlwiki/YamlTestingSuite Cool news. Good to hear. _why |