tink_typecrawler 0.6.1

Released 2018-03-12.

To install, run:

haxelib install tink_typecrawler 0.6.1

See using Haxelib in Haxelib documentation for more information.

This is not the latest stable version of tink_typecrawler. See version 0.6.2 for the latest version.

Current version0.6.2
StatisticsInstalled 1531 times


Tink Type Crawler

Build Status Gitter

This library is for the crazy scientists. You have been warned.

The purpose of this library is to establish a common infrastructure upon which macro based data structure processors can be written, e.g. tink_json which uses compile time type information to generate parsers and serializers. Similarly, tink_xml and tink_serialize are good candidates.

There are neither tests nor documentation for this monstrosity, but if you like headaches, then reading tink_json is a good place to see this library in action. The basics are really simple: Call tink.typecrawler.Crawler.crawl(type, pos, generator) where generator must be a tink.typecrawler.Generator provided by the caller to determine how specific types are handled. The result is an array of fields and an entry point expression, so you want to either call this from a build macro or make a TypeDefinition.

The documentation of this library is likely to stay sparse for a moment, unless some one else shows interest in using it directly. So if you have such interest, by all means please show it ;)