Grammar.IR.Rep (Ichor v0.2.1)

Copy Markdown View Source

Bounded repetition: expr{n}, expr{n,}, expr{n,m}.

expr{n} normalizes to min: n, max: n; the open-ended expr{n,} form normalizes to max: :infinity.

Summary

Types

t()

@type t() :: %Grammar.IR.Rep{
  expr: Grammar.IR.expr(),
  max: non_neg_integer() | :infinity,
  meta: Grammar.IR.Meta.t(),
  min: non_neg_integer()
}