Q Parser v1.3.0 Q.Search View Source

This module exists only so that I can test the macros in Q.

Link to this section Summary

Functions

Breaks shards in fragments using the fragments separator, for example "x:0" into ["x", "0"]. Can be overriden for custom behaviours.

Breaks the string in shards and then puts the shards into an accumulator. For example, "x:0 y:1" would become %{"x" => 0, "y" => 1}

Performs further processing after the parsing has been done.

Link to this section Functions

Specs

break_shard(shard :: String.t()) :: list()

Breaks shards in fragments using the fragments separator, for example "x:0" into ["x", "0"]. Can be overriden for custom behaviours.

Specs

break_string(string :: String.t()) :: map()

Breaks the string in shards and then puts the shards into an accumulator. For example, "x:0 y:1" would become %{"x" => 0, "y" => 1}

Specs

catch_param(acc :: map(), shard :: tuple()) :: map()
catch_param(acc :: map(), shard :: tuple()) :: map()
catch_param(acc :: map(), shard :: tuple()) :: map()

Specs

post_process(result :: map()) :: map()

Performs further processing after the parsing has been done.