Tcl Library Source Code

View Ticket
Login
Ticket UUID: c3478ceae229ff99d36013497e9dfd389bdd7848
Title: New json to huddle parser
Type: Bug Version:
Submitter: anonymous Created on: 2015-05-04 21:53:48
Subsystem: huddle Assigned To: aku
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2015-05-21 21:37:05
Resolution: None Closed By: nobody
    Closed on:
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.

Attachments: