Grammar.IR.Literal (Ichor v0.2.0)

Copy Markdown View Source

Exact string match.

Case-insensitivity ("lit"i/@case_insensitive) and other literal-level sugar are a front-end concern -- they desugar to this node, or to a Grammar.IR.CharClass-based expansion, before reaching the IR. The IR node itself only ever means "match this exact byte sequence."

Summary

Types

t()

@type t() :: %Grammar.IR.Literal{meta: Grammar.IR.Meta.t(), value: binary()}