View Source Loupe.Language (Loupe v0.9.0)

Loupe's compiler entrypoint.

Link to this section Summary

Functions

Compiles a query to AST

Link to this section Types

@type compile_error() :: Loupe.Errors.ParserError.t() | Loupe.Errors.LexerError.t()
@type sigil_definition() :: {char(), binary()}

Link to this section Functions

@spec compile(String.t() | charlist()) ::
  {:ok, Loupe.Language.Ast.t()} | {:error, compile_error()}

Compiles a query to AST