Name anonymous asserted
Message for asserted is optional
Add asserted point
Data structures querying tool. The basic concept is the function created
from the path with guide
function from the library code, which can be called
with data structure to query. There is also the tour
convenience function that
created the quite and calls it in one go.
Eleanor is specialy designed for the mutable Janet types, eg. tables and arrays. Or better, we did not have any motivation for working with immutable types.
Path could be considered a Janet DSL akin to the peg definition, but simpler both in definition only couple of the operations are available.
Any path must be a tuple, bracketed by tradition, and contain points needed
to traverse or transform the datastructure. Inside the tuple you need to list
the points along the way, similar to core get-in
. Each step operates on
the current base, which is usualy result of the traversing or transforming
previous base. The first base is the provided datastructure.
There are three main kinds of points:
Function receive current base, and its return is set as next base.
Function receive current base, and array with already collected data. Its return is set as next base.
Keyword, string, number, tuple, struct you name it are called with get
on the base
~Consolidation phase of the development. All the bits and pieces are in place, we just need to polish and document them all. Stay tuned.~
Just after complete overhaul. Things will burst into your face.