Enum fungi_lang::ast::NameTm[][src]

pub enum NameTm {
    Var(Var),
    Ident(Ident),
    ValVar(Var),
    Name(Name),
    Bin(NameTmRecNameTmRec),
    Lam(VarSortNameTmRec),
    App(NameTmRecNameTmRec),
    WriteScope,
    NoParse(String),
}

Name Terms

Variants

Name-term level variable x, of some sort g:

 Γ(x) = g
----------- :: Var
 Γ ⊢ x : g
 Γ(x) = (Γ', i)
 Γ' ⊢ i : g
----------------- :: Ident  (contextual definition)
 Γ ⊢ i : g

Injected value-level variable x, of type Nm[i], for some name set i:

 Γ(x) = Nm[i]
-------------- :: ValVar
 Γ ⊢ ~x : Nm
------------ :: Name
 Γ ⊢ n : Nm
 Γ ⊢ N : Nm
 Γ ⊢ M : Nm
--------------- :: Bin
 Γ ⊢ N * M : Nm
 Γ, x:g1 ⊢ M : g2
------------------------- :: Lam
 Γ ⊢ #x:g1. M : g1 -> g2
 Γ ⊢ M : g1 -> g2
 Γ ⊢ N : g1
------------------ :: App
 Γ ⊢ [M] N : g2

@@ : Nm -> Nm

This is the initial/default/neutral/ambient write scope. All other write scopes are functions that compose with this one (where this function is always the "last" function in the composition).

Trait Implementations

impl Display for NameTm
[src]

Formats the value using the given formatter. Read more

impl Clone for NameTm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NameTm
[src]

Formats the value using the given formatter. Read more

impl Eq for NameTm
[src]

impl PartialEq for NameTm
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for NameTm
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for NameTm
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for NameTm
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Auto Trait Implementations

impl !Send for NameTm

impl !Sync for NameTm