# `Srd.Dice.Expr`
[🔗](https://github.com/autodidaddict/agentic-realms/tree/main/packages/srd_5e/blob/main/lib/srd/dice/expr.ex#L1)

A parsed, unrolled dice expression. A dice expression can be built
  manually or can be parsed from human-readable dice notation like d20, 2d4+1, etc.

# `t`

```elixir
@type t() :: %Srd.Dice.Expr{
  count: pos_integer(),
  modifier: integer(),
  sides: pos_integer()
}
```

# `parse`

```elixir
@spec parse(String.t() | t()) :: {:ok, t()} | {:error, {:invalid_dice, String.t()}}
```

# `parse!`

```elixir
@spec parse!(String.t() | t()) :: t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
