nicolas-grekas/Patchwork-Dumper — pull request #5 by OwlyCode (2014-03-02 20:51:29+00:00)
Title: Added an early implementation of a javascript model

This adds a compiler and a tree modelization in javascript for dumper. Each type is modelized : DumpScalar, DumpObject, DumpArray, DumpReference and DumpUndefined.

How to test it :

```javascript
// Let's admit we have the dumper special json stored in a "json" var.

var dictionary = compileDictionary(getDictionaryOf(json));
var references = getRefsOf(json);

// We can now manipulate our tree
var root = compiledDictionary[0];

// If a node in the dictionary is a reference (eg. of type DumpReference), we can resolve it :
var referenceTarget = compiledDictionnary[1].resolve(dictionary, references);
```

Note that the breadthQueue: object is not yet handled.