php-dextrin

TypeExpr.php

Table of Contents

Classes

TypeExpr
Internal, compiled representation of a `.dxns` type expression -- the 12-form vocabulary (`any`, `primitive`, `reference`, `list-of`, `set-of`, `tuple-of`, `map-of`, `enum`, `one-of`, `all-of`, `nilable`, `refine`) {@see Compiler} turns a parsed `.dxns` value into, and what {@see self::matches()} checks a decoded/to-be-encoded value against. (The 13th `dxn/DXN.md` ยง4 form, `struct`, isn't a distinct compiled shape here either -- a `%schema{}` entry compiles straight to {@see Compiled}, never to a `TypeExpr` a *field* could hold; `reference` is what a field uses to point at one.)
On this page

Search results