Jetons.Query (jetons v0.2.0)

Copy Markdown View Source

Query helpers for working with flattened token lists.

These functions operate on [{path, value}] tuples as returned by Jetons.Parser.from_config/1. They are used by generated modules for group_by_path, get_groups, and get_in_group functions.

Summary

Functions

get_groups(tokens, category)

get_in_group(tokens, category, group)

group_by_path(tokens, category, depth)