MCPcopy Create free account

hub / github.com/brendanzab/rust-nbe-for-mltt / functions

Functions404 in github.com/brendanzab/rust-nbe-for-mltt

↓ 3 callersFunctionread_back_neutral
Read a neutral value back into the core syntax, normalizing as required.
crates/mltt-core/src/nbe.rs:318
↓ 3 callersMethodskip_float_exponent
Consume float exponents, returning `true` if an exponent was found.
crates/mltt-parse/src/lexer.rs:467
↓ 3 callersMethodspan
Returns a span in the source file.
crates/mltt-parse/src/lexer.rs:141
↓ 3 callersFunctionsynth_universe
( context: &mltt_elaborate::Context, metas: &mut mltt_core::meta::Env, concrete_ty_file: &File, )
crates/mltt-test/src/support.rs:37
↓ 3 callersMethodtoken_slice
Returns the string slice of the current token.
crates/mltt-parse/src/lexer.rs:151
↓ 3 callersFunctionunification_error
( span: FileSpan, _value1: &Rc<domain::Value>, _value2: &Rc<domain::Value>, )
crates/mltt-elaborate/src/unify.rs:177
↓ 3 callersMethodvalue_to_doc
Convert a value to a pretty printable document.
crates/mltt-elaborate/src/context.rs:236
↓ 3 callersMethodvalues
Values to be used during evaluation.
crates/mltt-core/src/validate.rs:47
↓ 2 callersMethodadd_defn
Add a definition to the context.
crates/mltt-core/src/validate.rs:57
↓ 2 callersFunctioncheck
Check the type of a literal in a context.
crates/mltt-elaborate/src/literal.rs:23
↓ 2 callersFunctioncheck_module
Check that this is a valid module.
crates/mltt-core/src/validate.rs:174
↓ 2 callersMethodcheck_subtype
Expect that `ty1` is a subtype of `ty2` in the current context.
crates/mltt-core/src/validate.rs:89
↓ 2 callersFunctioncheck_ty
Check whether a type is a subtype of another type.
crates/mltt-core/src/nbe.rs:397
↓ 2 callersMethodconsume_zero_number
Consume a number starting with zero.
crates/mltt-parse/src/lexer.rs:437
↓ 2 callersMethodcontains
(self, span: Span<Source>)
crates/mltt-span/src/span.rs:71
↓ 2 callersFunctiondeclaration
( label: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, term_ty: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>,
crates/mltt-core/src/pretty.rs:14
↓ 2 callersFunctiondefinition
( label: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, term: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, )
crates/mltt-core/src/pretty.rs:33
↓ 2 callersMethoddesugar_arg_term
(&self)
crates/mltt-concrete/src/lib.rs:251
↓ 2 callersFunctiondone
Finish elaborating the patterns into a case tree.
crates/mltt-elaborate/src/clause.rs:307
↓ 2 callersFunctioneval_fun_elim
Apply a function to an argument.
crates/mltt-core/src/nbe.rs:92
↓ 2 callersFunctioneval_fun_elim
( prims: &prim::Env, metas: &meta::Env, fun: Rc<domain::Value>, app_mode: &AppMode, arg: R
crates/mltt-elaborate/src/nbe.rs:8
↓ 2 callersFunctioneval_literal_elim
Case split on a literal.
crates/mltt-core/src/nbe.rs:44
↓ 2 callersFunctioneval_literal_elim
( prims: &prim::Env, metas: &meta::Env, scrutinee: Rc<domain::Value>, closure: domain::Literal
crates/mltt-elaborate/src/nbe.rs:19
↓ 2 callersFunctioneval_prim
Evaluate a primitive.
crates/mltt-core/src/nbe.rs:14
↓ 2 callersFunctioneval_record_elim
Return the field in from a record.
crates/mltt-core/src/nbe.rs:72
↓ 2 callersFunctioneval_record_elim
( term: Rc<domain::Value>, label: &Label, )
crates/mltt-elaborate/src/nbe.rs:29
↓ 2 callersFunctioneval_term
( prims: &prim::Env, metas: &meta::Env, values: &var::Env<Rc<domain::Value>>, span: impl Into<
crates/mltt-elaborate/src/nbe.rs:47
↓ 2 callersFunctionexpect_base
( span: FileSpan, is_neg: bool, chars: &mut impl Iterator<Item = char>, )
crates/mltt-elaborate/src/literal.rs:258
↓ 2 callersMethodexpect_doc_comments
(&mut self)
crates/mltt-parse/src/parser.rs:274
↓ 2 callersFunctionforce_value
Evaluate a value further, if it's now possible due to updates made to the metavariable solutions.
crates/mltt-core/src/nbe.rs:377
↓ 2 callersMethodforce_value
Evaluate a value further, if it's now possible due to updates made to the metavariable solutions.
crates/mltt-elaborate/src/context.rs:210
↓ 2 callersFunctionis_dec_digit
(ch: char)
crates/mltt-parse/src/lexer.rs:77
↓ 2 callersFunctionis_hex_digit
(ch: char)
crates/mltt-parse/src/lexer.rs:84
↓ 2 callersFunctionitems_to_display_doc
( items: &[syntax::Item], env: &mut Env, )
crates/mltt-core/src/pretty.rs:198
↓ 2 callersMethodnew_meta
Create a fresh meta and return the meta applied to all of the currently bound vars.
crates/mltt-elaborate/src/context.rs:141
↓ 2 callersFunctionnext_non_whitespace
Skip whitespace or line comment tokens.
crates/mltt-parse/src/parser.rs:185
↓ 2 callersFunctionparens
( inner: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, )
crates/mltt-core/src/pretty.rs:8
↓ 2 callersMethodparse_arg_term
Parse an argument term. ```text arg-term(prec) ::= operators(prec) { prefix "(" ::= parens prefix "Type" ::= universe
crates/mltt-parse/src/parser.rs:609
↓ 2 callersFunctionparse_char
(src: &SpannedString<'_>)
crates/mltt-elaborate/src/literal.rs:116
↓ 2 callersFunctionparse_escape
( span: FileSpan, chars: &mut impl Iterator<Item = char>, )
crates/mltt-elaborate/src/literal.rs:133
↓ 2 callersMethodparse_hole
Parse the trailing part of a hole.
crates/mltt-parse/src/parser.rs:667
↓ 2 callersMethodparse_parens
Parse the trailing part of a parenthesis grouping. ```text parens ::= term(0) ")" ```
crates/mltt-parse/src/parser.rs:826
↓ 2 callersMethodparse_record_elim
Parse the trailing part of a record elimination. ```text record-elim ::= IDENTIFIER ```
crates/mltt-parse/src/parser.rs:1064
↓ 2 callersMethodparse_universe
Parse the trailing part of a universe. ```text universe ::= ("^" INT_LITERAL)? ```
crates/mltt-parse/src/parser.rs:1030
↓ 2 callersMethodpartial_cmp
(&self, other: &u32)
crates/mltt-parse/src/parser.rs:179
↓ 2 callersMethodpeek
Peek at the current lookahead character.
crates/mltt-parse/src/lexer.rs:178
↓ 2 callersMethodpretty_env
Convert the context into a pretty printing environment.
crates/mltt-elaborate/src/context.rs:72
↓ 2 callersFunctionread_back_value
( prims: &prim::Env, metas: &meta::Env, env_size: var::Size, span: impl Into<Option<FileSpan>>
crates/mltt-elaborate/src/nbe.rs:61
↓ 2 callersFunctionrecord_elim
( term: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, label: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, )
crates/mltt-core/src/pretty.rs:86
↓ 2 callersMethodshift
Shift the by the given amount, returning an error if maximum universe level has been reached.
crates/mltt-core/src/lib.rs:69
↓ 2 callersMethodskip_escape
Skip an escape.
crates/mltt-parse/src/lexer.rs:335
↓ 2 callersFunctionsolve_neutral
Solve metavariables in the case where a metavariable has been found in a head position.
crates/mltt-elaborate/src/unify.rs:130
↓ 2 callersMethodsource
Return a slice of the source file, given a span.
crates/mltt-span/src/file.rs:140
↓ 2 callersFunctionsynth_clause
Synthesize the type of the clauses, elaborating them into a case tree. Returns the elaborated term and its synthesized type.
crates/mltt-elaborate/src/clause.rs:190
↓ 2 callersFunctionsynth_literal
Synthesize the type of the literal.
crates/mltt-core/src/validate.rs:267
↓ 2 callersMethodunify_values
Expect that `ty1` is a subtype of `ty2` in the current context
crates/mltt-elaborate/src/context.rs:220
↓ 1 callersMethodadd
(mut self, other: u32)
crates/mltt-core/src/var.rs:73
↓ 1 callersMethodadd_fresh_defn
Add a fresh definition to the context.
crates/mltt-elaborate/src/context.rs:84
↓ 1 callersMethodadd_solved
Add a solution to the given metavariable index.
crates/mltt-core/src/meta.rs:55
↓ 1 callersMethodadd_unsolved
Create a fresh metavariable index.
crates/mltt-core/src/meta.rs:64
↓ 1 callersFunctioncheck_case
Check that the given case clauses conform to the expected type, and elaborate them into a case tree.
crates/mltt-elaborate/src/clause.rs:100
↓ 1 callersFunctioncheck_clause_body
Check that the body of the given clause conforms to they expected type, and elaborate it.
crates/mltt-elaborate/src/clause.rs:266
↓ 1 callersFunctioncheck_literal
Check that a literal conforms to a given type.
crates/mltt-core/src/validate.rs:257
↓ 1 callersFunctioncheck_param_app_mode
Check that a given parameter matches the expected application mode, and return the pattern inside it.
crates/mltt-elaborate/src/clause.rs:238
↓ 1 callersFunctioncheck_solution
Scope check + occurs check a solution candidate.
crates/mltt-elaborate/src/unify.rs:40
↓ 1 callersFunctioncheck_spine
Check that all entries in a spine are bound variables.
crates/mltt-elaborate/src/unify.rs:12
↓ 1 callersMethodconsume_char_literal
Consume a character literal.
crates/mltt-parse/src/lexer.rs:371
↓ 1 callersMethodconsume_identifier
Consume a identifier.
crates/mltt-parse/src/lexer.rs:282
↓ 1 callersMethodconsume_line_comment
Consume a line comment.
crates/mltt-parse/src/lexer.rs:246
↓ 1 callersMethodconsume_line_doc
Consume a doc comment.
crates/mltt-parse/src/lexer.rs:252
↓ 1 callersMethodconsume_neg_number
Consume a number starting with a negative sign.
crates/mltt-parse/src/lexer.rs:418
↓ 1 callersMethodconsume_string_literal
Consume a string literal.
crates/mltt-parse/src/lexer.rs:348
↓ 1 callersMethodconsume_symbol
Consume a symbol.
crates/mltt-parse/src/lexer.rs:264
↓ 1 callersMethodconsume_token
Consume a token, returning its tag or none on end of file.
crates/mltt-parse/src/lexer.rs:217
↓ 1 callersMethodconsume_whitespace
Consume some whitespace.
crates/mltt-parse/src/lexer.rs:258
↓ 1 callersMethoddesugar
Desugar punned fields.
crates/mltt-concrete/src/lib.rs:296
↓ 1 callersMethodemit
Emit a token and reset the start position, ready for the next token.
crates/mltt-parse/src/lexer.rs:171
↓ 1 callersMethodentries
(&self)
crates/mltt-core/src/var.rs:37
↓ 1 callersMethodeof_span
Returns the span of the end of the file.
crates/mltt-parse/src/lexer.rs:165
↓ 1 callersFunctioneval_elim
Evaluate an eliminator.
crates/mltt-core/src/nbe.rs:30
↓ 1 callersMethodinterpret
Interpret a primitive if there are enough function eliminators provided in the spine. `None` is returned if evaluation is stuck. Also known as [δ-red
crates/mltt-core/src/prim.rs:52
↓ 1 callersMethodis_definition
Returns `true` if the item is a definition.
crates/mltt-concrete/src/lib.rs:33
↓ 1 callersFunctionis_identifier_start
(ch: char)
crates/mltt-parse/src/lexer.rs:49
↓ 1 callersMethodis_match
(&self, given: &Token<'_>)
crates/mltt-parse/src/parser.rs:104
↓ 1 callersFunctionis_oct_digit
(ch: char)
crates/mltt-parse/src/lexer.rs:70
↓ 1 callersFunctionis_symbol
(ch: char)
crates/mltt-parse/src/lexer.rs:42
↓ 1 callersFunctionis_whitespace
(ch: char)
crates/mltt-parse/src/lexer.rs:24
↓ 1 callersMethodline_span
(&self, file_id: FileId, line: impl Into<LineIndex>)
crates/mltt-span/src/file.rs:108
↓ 1 callersFunctionlocation
()
crates/mltt-span/src/file.rs:218
↓ 1 callersMethodlookup_binder
Lookup the de-bruijn index and the type annotation of a binder in the context using a user-defined name.
crates/mltt-elaborate/src/context.rs:160
↓ 1 callersMethodlookup_name
(&self, var_index: var::Index)
crates/mltt-core/src/pretty.rs:134
↓ 1 callersMethodlookup_ty
Lookup the type of a variable in the context.
crates/mltt-core/src/validate.rs:52
↓ 1 callersFunctionnext_expected_param
Get the next expected parameter
crates/mltt-elaborate/src/clause.rs:211
↓ 1 callersFunctionnormalize_term
( prims: &prim::Env, metas: &meta::Env, values: &var::Env<Rc<domain::Value>>, span: impl Into<
crates/mltt-elaborate/src/nbe.rs:75
↓ 1 callersMethodnormalize_term
Fully normalize a term by first evaluating it, then reading it back.
crates/mltt-elaborate/src/context.rs:199
↓ 1 callersMethodparse_ann
Parse the trailing part of a type annotation. ```text ann ::= term(20 - 1) ```
crates/mltt-parse/src/parser.rs:1078
↓ 1 callersMethodparse_arg
Parse an argument. ```text arg ::= arg-term(0) | "{" IDENTIFIER ("=" term(0))? "}" | "{{" IDENTIFIER ("=" term(0))? "}}" ```
crates/mltt-parse/src/parser.rs:409
↓ 1 callersMethodparse_case_expr
Parse the trailing part of a case expression. ```text case-expr ::= arg-term(0) "{" (case-clause ";")* case-clause? "}" case-clause ::= pattern(0)
crates/mltt-parse/src/parser.rs:991
↓ 1 callersMethodparse_fun_arrow_type
Parse the trailing part of a function arrow. ```text fun-arrow-type ::= term(50 - 1) ```
crates/mltt-parse/src/parser.rs:1093
↓ 1 callersMethodparse_fun_intro
Parse the trailing part of a function introduction. ```text fun-intro ::= intro-param+ "=>" term(0) ```
crates/mltt-parse/src/parser.rs:801
← previousnext →101–200 of 404, ranked by callers