| Description: |
Hi, I created a json to huddle parser. I built 20 tests for this new code. I used an object oriented approach.
I refactored huddle, I eliminated dead code and I improved the quality. Now it's more readable and easy to mantain.
I added these new types to huddle:
- number
- boolean
- null
I added some tests for these new types.
I changed accordingly yaml:
- the behaviour and siganture of huddle::wrap was changed and for this reason made the appropriate changes in yaml
- it's necessary a new parameter "isContainer" for new types. This parameter indicates whether a type can contains another types.
- I added "combine_relaxed" in huddle because yaml needs to combines objects of different types
The new source code pass al the tests:
- the tests for huddle
- the tests for yaml
- the tests for json2huddle
It's all added to the attachment.
Best regards,
Miguel.
|