MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / parse

Function parse

leanr-syntax/src/parser.rs:734–739  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

732 use crate::span::SourceFile;
733
734 fn parse(input: &str) -> crate::Result<Vec<Decl>> {
735 let source = SourceFile::new(0, "test.lean".to_string(), input.to_string());
736 let tokens = Lexer::new(source).tokenize();
737 let mut parser = Parser::new(tokens);
738 parser.parse_decls()
739 }
740
741 #[test]
742 fn test_simple_def() {

Callers 3

test_simple_defFunction · 0.85
test_lambdaFunction · 0.85
test_inductiveFunction · 0.85

Calls 2

tokenizeMethod · 0.80
parse_declsMethod · 0.80

Tested by 3

test_simple_defFunction · 0.68
test_lambdaFunction · 0.68
test_inductiveFunction · 0.68