A reference to a particular syntax kind, via one of its atoms.
It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.
Specifying the category or kind using the named arguments cat and of can narrow down the
process.
Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.
Equations
- Lean.Doc.kw cat of xs = do let s ← Lean.Doc.onlyCode✝ xs liftM (Lean.Doc.kwImpl✝ cat of false s)
Instances For
A reference to a particular syntax kind, via one of its atoms.
It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.
Specifying the category or kind using the named arguments cat and of can narrow down the
process.
Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A reference to a particular syntax kind, via one of its atoms.
It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.
Specifying the category or kind using the named arguments cat and of can narrow down the
process.
Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.
Equations
- Lean.Doc.kw? cat of xs = do let s ← Lean.Doc.onlyCode✝ xs liftM (Lean.Doc.kwImpl✝ cat of true s)
Instances For
A reference to a particular syntax kind, via one of its atoms.
It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.
Specifying the category or kind using the named arguments cat and of can narrow down the
process.
Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Checks that a syntax kind name exists.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A reference to a particular syntax kind, via one of its atoms.
It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.
Specifying the category or kind using the named arguments cat and of can narrow down the
process.
Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A reference to a particular syntax kind, via one of its atoms.
It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.
Specifying the category or kind using the named arguments cat and of can narrow down the
process.
Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.
Equations
- Lean.Doc.kw!.getArgs x✝ = do let of ← Lean.Doc.getNamed `of none let scope ← Lean.Doc.getNamed `scope Lean.Doc.DocScope.local Lean.Doc.done liftM (Lean.Doc.kw! of scope x✝)
Instances For
Suggests the kw role, if applicable.
Equations
- One or more equations did not get rendered due to their size.