BubbleMatch.Sigil (bubble_match v0.7.3)

View Source

Summary

Functions

Define the ~m sigil for compile-time parsing of BML expressions.

Functions

sigil_m(arg, list)

(macro)

Define the ~m sigil for compile-time parsing of BML expressions.

For use within Elixir it is possible to use a ~m sigil which parses the given BML query on compile-time:

defmodule MyModule do
  use BubbleMatch.Sigil

  def greeting?(input) do
    BubbleMatch.match(~m"hello | hi | howdy", input) != :nomatch
  end
end