Ferricstore.Commands.NativeAstParser (ferricstore v0.7.2)

Copy Markdown View Source

Parses native command frames into FerricStore command ASTs.

Native protocol already separates command name from arguments, so this module intentionally does not parse text-protocol bytes. It converts the command name to the same AST dispatcher shape used internally and extracts keys through the command catalog.

Summary

Functions

Returns the command names accepted by the native AST parser.

Types

result()

@type result() :: {:ok, binary(), [binary()], term(), [binary()]} | {:error, binary()}

Functions

parse(name, args)

@spec parse(binary(), [term()]) :: result()

supported_command_names()

@spec supported_command_names() :: MapSet.t(String.t())

Returns the command names accepted by the native AST parser.