Literals
Content created by Fredrik Bakke, Fernando Chu and Egbert Rijke.
Created on 2023-04-27.
Last modified on 2024-02-07.
module reflection.literals where
Imports
open import elementary-number-theory.natural-numbers open import foundation.universe-levels open import primitives.characters open import primitives.floats open import primitives.machine-integers open import primitives.strings open import reflection.metavariables open import reflection.names
Idea
The Literal-Agda
type represents literals in Agda.
For concrete examples, see
reflection.definitions
.
Definition
data Literal-Agda : UU lzero where nat-Literal-Agda : ℕ → Literal-Agda word64-Literal-Agda : Word64 → Literal-Agda float-Literal-Agda : Float → Literal-Agda char-Literal-Agda : Char → Literal-Agda string-Literal-Agda : String → Literal-Agda quoted-name-Literal-Agda : Name-Agda → Literal-Agda metavariable-Literal-Agda : Metavariable-Agda → Literal-Agda
Bindings
{-# BUILTIN AGDALITERAL Literal-Agda #-} {-# BUILTIN AGDALITNAT nat-Literal-Agda #-} {-# BUILTIN AGDALITWORD64 word64-Literal-Agda #-} {-# BUILTIN AGDALITFLOAT float-Literal-Agda #-} {-# BUILTIN AGDALITCHAR char-Literal-Agda #-} {-# BUILTIN AGDALITSTRING string-Literal-Agda #-} {-# BUILTIN AGDALITQNAME quoted-name-Literal-Agda #-} {-# BUILTIN AGDALITMETA metavariable-Literal-Agda #-}
Recent changes
- 2024-02-07. Fredrik Bakke. Deduplicate definitions (#1022).
- 2023-05-01. Fredrik Bakke. Refactor 2, the sequel to refactor (#581).
- 2023-04-27. Egbert Rijke. fixing broken links (#580).
- 2023-04-27. Fernando Chu, Fernando Chu, Fernando Chu and Fredrik Bakke. Reflection and solvers (#571).