May 29, 2017
7:31 a.m.
Hi Peter, If you have a BNF of YAML, then a SmaCC parser with AST generation is at most a day of work. I can help. Thierry 2017-05-29 9:15 GMT+02:00 Peter Uhnak <i.uhnak@gmail.com>:
Hi,
do we have a working parser for YAML?
There's PPYAMLGrammar (in PetitParser), however it doesn't seem to work in Pharo 6 at all (not even tests pass). In Pharo 5 the tests are green, but using it on YAML content still fails... with small fix I managed it to "pass", however the output seems to be a very fine-grained AST decomposition and not the expected output (dictionaries/arrays).
So do we have some else/working?
YAML specs have BNF descriptions, so maybe SmaCC can generate it? (I don't know SmaCC, so maybe this is not how it works.)
Thanks, Peter