Hello Peter Thank you for the answer. Good news that Phil Back has an done upgraded version of the PetitYAML parser recently. I think what you describe as "mostly complete" will be very fine for my purposes. On 8/18/17, Peter Uhnak <i.uhnak@gmail.com> wrote:
Hi,
Phil Back has kindly fixed the PetitYAML so it mostly works now. The only problem I've encountered was some weird misparsing of strings containing slashes, e.g. "5/".
In any case:
Install PetitParser (from Catalog or somewhere), load PetitYAML package (this is already loaded when loading PP from catalog).
I just installed Pillar and that pulled in PetitParser. Not sure if it is a good idea now to re-install PetitParser again. In particular there is only PetitParser catalog entry for Pharo 5.0, not 6.0 or 6.1 I assume that can directly load the PetitYAML from the repository instead. Where do I find it?
And then parse your string
``` PPYAMLGrammar parse: ' language: c sudo: false cache: directories: - opensmalltalk-vm/.thirdparty-cache git: depth: "5"'. ```
"Dictionary( 'cache'->a Dictionary( 'directories'->#('opensmalltalk-vm/.thirdparty-cache') ) 'git'->a Dictionary( 'depth'->'5' ) 'language'->'c' 'sudo'->'false' )"
Thank you for the example.
Take a look at PPYAMLGrammarTest>>testTravisYml too.
Peter
--Hannes