MCPcopy Create free account

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

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

↓ 48 callersMethodspan
(&self)
crates/mltt-parse/src/token.rs:58
↓ 44 callersMethodspan
Get the span of the source of this file.
crates/mltt-span/src/file.rs:54
↓ 37 callersMethodinto
(self)
crates/mltt-concrete/src/lib.rs:125
↓ 34 callersMethodexpect_match
( &mut self, matcher: impl Matcher<Token<'file>>, )
crates/mltt-parse/src/parser.rs:239
↓ 26 callersFunctionuniverse
( level: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, )
crates/mltt-core/src/pretty.rs:100
↓ 22 callersMethodlen
(&self)
crates/mltt-span/src/span.rs:83
↓ 21 callersMethodtry_match
(&mut self, matcher: impl Matcher<Token<'file>>)
crates/mltt-parse/src/parser.rs:231
↓ 20 callersMethodadd_entry
Add an entry in the environment.
crates/mltt-core/src/var.rs:33
↓ 20 callersMethodparse_term
Parse a term. ```text term(prec) ::= operators(prec) { prefix "let" ::= let-expr prefix "if" ::= if-expr prefix "case
crates/mltt-parse/src/parser.rs:518
↓ 20 callersMethodto_usize
(self)
crates/mltt-span/src/index/byte.rs:8
↓ 18 callersMethodsize
Get the size of the environment.
crates/mltt-core/src/var.rs:23
↓ 17 callersMethodadd_defn
Add a definition to the context.
crates/mltt-elaborate/src/context.rs:92
↓ 16 callersMethodeval_term
Evaluate a term using the evaluation environment
crates/mltt-elaborate/src/context.rs:179
↓ 14 callersMethodtoken_span
Returns the span of the current token in the source file.
crates/mltt-parse/src/lexer.rs:146
↓ 13 callersMethodadd_diagnostic
Record a diagnostic.
crates/mltt-parse/src/lexer.rs:135
↓ 13 callersMethodfresh_name
Generate a fresh name based on the names that have already been used in the environment. We try to get close to the `name_hint`, adding a number if ne
crates/mltt-core/src/pretty.rs:144
↓ 13 callersFunctionliteral_bug
(span: FileSpan, message: impl Into<String>)
crates/mltt-elaborate/src/literal.rs:82
↓ 12 callersMethodadd_param
Add a parameter the context, returning a variable that points to the introduced binder.
crates/mltt-elaborate/src/context.rs:122
↓ 12 callersFunctionvar
()
crates/mltt-parse/tests/parser.rs:41
↓ 11 callersFunctionsynth_universe
Ensures that the given term is a universe, returning the level of that universe and its elaborated form.
crates/mltt-elaborate/src/lib.rs:174
↓ 11 callersMethodto_usize
(self)
crates/mltt-span/src/index/column.rs:20
↓ 10 callersMethodend
(&self)
crates/mltt-span/src/span.rs:67
↓ 10 callersMethodnext_level
Return the level of the next variable to be added to the environment.
crates/mltt-core/src/var.rs:48
↓ 9 callersFunctionapp_closure
( prims: &prim::Env, metas: &meta::Env, closure: &domain::AppClosure, arg: Rc<domain::Value>,
crates/mltt-elaborate/src/nbe.rs:37
↓ 9 callersFunctionemit_diagnostic
( writer: &'a StandardStream, files: &'a Files, )
crates/mltt-test/src/support.rs:26
↓ 9 callersMethodeval_term
Evaluate a term using the evaluation environment.
crates/mltt-core/src/validate.rs:84
↓ 9 callersMethodinto
(self)
crates/mltt-span/src/location.rs:15
↓ 9 callersMethodlookup_entry
Lookup an entry in the environment.
crates/mltt-core/src/var.rs:28
↓ 9 callersMethodskip_if
Skip by one character if the predicate matches the lookahead.
crates/mltt-parse/src/lexer.rs:206
↓ 9 callersMethodstart
(&self)
crates/mltt-span/src/span.rs:63
↓ 8 callersMethodadvance
Consume the current token and load the next one. Return the old token.
crates/mltt-parse/src/parser.rs:215
↓ 8 callersFunctioncheck_term
Check that a given term conforms to an expected type. Returns the elaborated term.
crates/mltt-elaborate/src/lib.rs:194
↓ 8 callersFunctionexpect_char
( span: FileSpan, chars: &mut impl Iterator<Item = char>, )
crates/mltt-elaborate/src/literal.rs:87
↓ 8 callersFunctioninst_closure
Instantiate a closure in an environment of the given size.
crates/mltt-core/src/nbe.rs:133
↓ 8 callersFunctionload_file
(files: &mut Files, path: String)
crates/mltt-test/src/support.rs:21
↓ 8 callersMethodprims
Primitive entries.
crates/mltt-elaborate/src/context.rs:57
↓ 8 callersMethodto_usize
(self)
crates/mltt-span/src/index/line.rs:8
↓ 8 callersMethodvalues
Values to be used during evaluation.
crates/mltt-elaborate/src/context.rs:62
↓ 7 callersMethodpeek
Peek at the current lookahead token.
crates/mltt-parse/src/parser.rs:210
↓ 7 callersMethodto_doc
Convert the item into a pretty-printable document.
crates/mltt-concrete/src/pretty.rs:10
↓ 6 callersMethodadd_param
Add a bound variable the context, returning a variable that points to the correct binder.
crates/mltt-core/src/validate.rs:65
↓ 6 callersMethodadvance
Consume the current character and load the next one. Return the old token.
crates/mltt-parse/src/lexer.rs:183
↓ 6 callersFunctionann
( term: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, term_ty: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, )
crates/mltt-core/src/pretty.rs:74
↓ 6 callersMethodapp_closure
Apply a closure to an argument.
crates/mltt-elaborate/src/context.rs:169
↓ 6 callersMethodcontents
Get a slice to the contents of the file.
crates/mltt-span/src/file.rs:44
↓ 6 callersFunctioneval_term
Evaluate a term in the environment that corresponds to the context in which the term was typed.
crates/mltt-core/src/nbe.rs:145
↓ 6 callersMethodexpect_advance
Bump the current position in the source string by one character, returning the current character or an unexpected end of file error.
crates/mltt-parse/src/lexer.rs:191
↓ 6 callersFunctioninstantiate_value
( values: &var::Env<Rc<domain::Value>>, )
crates/mltt-elaborate/src/unify.rs:168
↓ 6 callersMethodnext
(&mut self)
crates/mltt-parse/src/lexer.rs:535
↓ 6 callersFunctionparse_term
( tokens: impl Iterator<Item = Token<'file>> + 'file, )
crates/mltt-parse/src/parser.rs:90
↓ 6 callersMethodprims
Primitive entries.
crates/mltt-core/src/validate.rs:42
↓ 6 callersMethodskip_while
Skip characters while the predicate matches the lookahead character.
crates/mltt-parse/src/lexer.rs:199
↓ 6 callersMethodto_display_doc
(&self, env: &Env)
crates/mltt-core/src/pretty.rs:179
↓ 5 callersMethodexpect_identifier
(&mut self)
crates/mltt-parse/src/parser.rs:258
↓ 5 callersMethodindex
Convert a variable level to a variable index in the current environment.
crates/mltt-core/src/var.rs:53
↓ 5 callersMethodis_peek_match
(&self, matcher: impl Matcher<Token<'file>>)
crates/mltt-parse/src/parser.rs:227
↓ 5 callersFunctionread_back_value
Read a value back into the core syntax, normalizing as required.
crates/mltt-core/src/nbe.rs:244
↓ 5 callersFunctionsetup
()
crates/mltt-test/src/support.rs:14
↓ 5 callersMethodsource
(&self)
crates/mltt-span/src/span.rs:59
↓ 5 callersFunctionsynth_term
Synthesize the type of the term.
crates/mltt-core/src/validate.rs:399
↓ 5 callersFunctionsynth_universe
Ensures that the given term is a universe, returning the level of that universe.
crates/mltt-core/src/validate.rs:286
↓ 5 callersMethodto_debug_doc
(&self)
crates/mltt-core/src/pretty.rs:171
↓ 5 callersMethodvalidation_context
Convert the context into a validation context.
crates/mltt-elaborate/src/context.rs:67
↓ 4 callersMethodadd
Add a file to the database, returning the handle that can be used to refer to it again.
crates/mltt-span/src/file.rs:72
↓ 4 callersMethodadd_fresh_param
Add a fresh parameter the context, returning a variable that points to the introduced binder.
crates/mltt-elaborate/src/context.rs:109
↓ 4 callersMethodapp_closure
Apply a closure to an argument.
crates/mltt-core/src/validate.rs:74
↓ 4 callersFunctionclause
( patterns: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, body: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>,
crates/mltt-core/src/pretty.rs:52
↓ 4 callersFunctionforce_value
( prims: &prim::Env, metas: &meta::Env, span: impl Into<Option<FileSpan>>, value: &Rc<domain::
crates/mltt-elaborate/src/nbe.rs:89
↓ 4 callersFunctioninsert_metas
Insert metavariables based on the expected type.
crates/mltt-elaborate/src/lib.rs:315
↓ 4 callersMethodline_starts
Get a slice to the line start indices of the file.
crates/mltt-span/src/file.rs:49
↓ 4 callersMethodparse_fun_elim
Parse the trailing part of a function elimination. ```text fun-elim ::= arg ```
crates/mltt-parse/src/parser.rs:1108
↓ 4 callersFunctionparse_string
(src: &SpannedString<'_>)
crates/mltt-elaborate/src/literal.rs:97
↓ 4 callersFunctionprim
( prim_name: impl Into<Doc<'doc, BoxDoc<'doc, A>, A>>, )
crates/mltt-core/src/pretty.rs:65
↓ 4 callersMethodskip_separated_digits
Skip some digits, separated by `_`, returning the number of digits consumed.
crates/mltt-parse/src/lexer.rs:405
↓ 4 callersFunctionsynth_term
Synthesize the type of the given term. Metavariables are inserted based on the given `meta_insertion`. Returns the elaborated term and its synthesiz
crates/mltt-elaborate/src/lib.rs:371
↓ 4 callersMethodto_debug_arg_doc
(&self)
crates/mltt-core/src/pretty.rs:442
↓ 4 callersMethodto_display_arg_doc
(&self, env: &Env)
crates/mltt-core/src/pretty.rs:816
↓ 4 callersMethodtry_identifier
(&mut self)
crates/mltt-parse/src/parser.rs:253
↓ 3 callersMethodadd_name
Add a name-to-level substitution to the context.
crates/mltt-elaborate/src/context.rs:77
↓ 3 callersFunctionapp_closure
Apply a closure to an argument.
crates/mltt-core/src/nbe.rs:121
↓ 3 callersFunctioncheck_clause
Check that a given clause conforms to an expected type, and elaborates it into a case tree. Returns the elaborated term.
crates/mltt-elaborate/src/clause.rs:44
↓ 3 callersFunctioncheck_items
Check the given items and add them to the context.
crates/mltt-core/src/validate.rs:185
↓ 3 callersFunctioncheck_items
Check the given items and add them to the context. Returns the elaborated items.
crates/mltt-elaborate/src/lib.rs:63
↓ 3 callersFunctioncheck_term
( context: &mltt_elaborate::Context, metas: &mut mltt_core::meta::Env, concrete_term_file: &File,
crates/mltt-test/src/support.rs:55
↓ 3 callersFunctioncheck_term
Check that a term conforms to a given type.
crates/mltt-core/src/validate.rs:299
↓ 3 callersFunctionconcat_docs
Concatenate a bunch of lines of documentation into a single string, removing comment prefixes if they are found.
crates/mltt-elaborate/src/lib.rs:46
↓ 3 callersMethodconsume_dec_literal
Consume a decimal literal.
crates/mltt-parse/src/lexer.rs:482
↓ 3 callersMethodconsume_radix_literal
Consume an integer literal that uses a specific radix.
crates/mltt-parse/src/lexer.rs:450
↓ 3 callersMethodend_span
(&self)
crates/mltt-span/src/span.rs:55
↓ 3 callersMethodexpect_eof
(&mut self)
crates/mltt-parse/src/parser.rs:263
↓ 3 callersMethodid
Get the handle that points to this file.
crates/mltt-span/src/file.rs:34
↓ 3 callersMethodlookup_solution
Lookup a the solution for a metavariable in the environment.
crates/mltt-core/src/meta.rs:50
↓ 3 callersMethodparse_char_literal
Parse the trailing part of a character literal.
crates/mltt-parse/src/parser.rs:680
↓ 3 callersMethodparse_float_literal
Parse the trailing part of a floating point literal.
crates/mltt-parse/src/parser.rs:696
↓ 3 callersMethodparse_int_literal
Parse the trailing part of a integer literal.
crates/mltt-parse/src/parser.rs:688
↓ 3 callersMethodparse_intro_params
Parse zero-or-more function introduction parameters. ```text intro-params ::= intro-param ```
crates/mltt-parse/src/parser.rs:358
↓ 3 callersMethodparse_item
Parse an item. ```text item ::= DOC_COMMENT* IDENTIFIER ":" term(0) ";" | DOC_COMMENT* IDENTIFIER intro-param* (":" term(0))? "=" term(0) ";" ```
crates/mltt-parse/src/parser.rs:301
↓ 3 callersMethodparse_pattern
Parse a pattern. ```text pattern(prec) ::= operators(prec) { nilfix IDENTIFIER nilfix STRING_LITERAL nilfix CHAR_LITERAL nilfix INT_LITERAL nilfi
crates/mltt-parse/src/parser.rs:449
↓ 3 callersMethodparse_string_literal
Parse the trailing part of a string literal.
crates/mltt-parse/src/parser.rs:672
↓ 3 callersMethodparse_var
Parse the trailing part of a variable.
crates/mltt-parse/src/parser.rs:659
next →1–100 of 404, ranked by callers