---
id: kw-registry
name: registry
category: structure
kind: keyword
tokens: registry
sig: [open] registry Name of Record [as PREFIX] [from "file.lres"]
tip: A table of named entries of one record type, with a constant per entry.
order: 63
---
A registry is a table of named entries of one record: its entries come from def declarations or a resource file named by from, and as P generates a constant P_KEY per entry holding its index. Editors read it through ludic schema, and attributes such as @AppendOnly and @PerMap say how its entries may change and where they live.
```ludic
# doc-check: skip — the file it names is beside the example
property Tool { key: string = "", weight: float = 0.0 }
registry Tools of Tool as TL from "data/tools.lres"
```