| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- The reflected abstract syntax tree |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Reflection.AST where |
| 10 |
|
| 11 |
import Agda.Builtin.Reflection as Builtin |
| 12 |
|
| 13 |
------------------------------------------------------------------------ |
| 14 |
-- Names, Metas, and Literals re-exported publicly |
| 15 |
|
| 16 |
open import Reflection.AST.Abstraction as Abstraction public |
| 17 |
using (Abs; abs) |
| 18 |
open import Reflection.AST.Argument as Argument public |
| 19 |
using (Arg; arg; Args; vArg; hArg; iArg; defaultModality) |
| 20 |
open import Reflection.AST.Definition as Definition public |
| 21 |
using (Definition) |
| 22 |
open import Reflection.AST.Meta as Meta public |
| 23 |
using (Meta) |
| 24 |
open import Reflection.AST.Name as Name public |
| 25 |
using (Name; Names) |
| 26 |
open import Reflection.AST.Literal as Literal public |
| 27 |
using (Literal) |
| 28 |
open import Reflection.AST.Pattern as Pattern public |
| 29 |
using (Pattern) |
| 30 |
open import Reflection.AST.Term as Term public |
| 31 |
using (Term; Type; Clause; Clauses; Sort) |
| 32 |
|
| 33 |
import Reflection.AST.Argument.Modality as Modality |
| 34 |
import Reflection.AST.Argument.Quantity as Quantity |
| 35 |
import Reflection.AST.Argument.Relevance as Relevance |
| 36 |
import Reflection.AST.Argument.Visibility as Visibility |
| 37 |
import Reflection.AST.Argument.Information as Information |
| 38 |
|
| 39 |
open Definition.Definition public |
| 40 |
open Information.ArgInfo public |
| 41 |
open Literal.Literal public |
| 42 |
open Modality.Modality public |
| 43 |
open Quantity.Quantity public |
| 44 |
open Relevance.Relevance public |
| 45 |
open Term.Term public |
| 46 |
open Visibility.Visibility public |
| 47 |
|
| 48 |
open import Reflection.AST.Show public |
| 49 |
|
| 50 |
------------------------------------------------------------------------ |
| 51 |
-- Fixity |
| 52 |
|
| 53 |
open Builtin public |
| 54 |
using (non-assoc; related; unrelated; fixity) |
| 55 |
renaming |
| 56 |
( left-assoc to assocˡ |
| 57 |
; right-assoc to assocʳ |
| 58 |
; primQNameFixity to getFixity |
| 59 |
) |