MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new_c

Method new_c

atomic-semantic/src/parsers/cpp.rs:46–52  ·  view source on GitHub ↗

Create a new C parser.

()

Source from the content-addressed store, hash-verified

44
45 /// Create a new C parser.
46 pub fn new_c() -> Self {
47 let mut parser = Parser::new();
48 parser
49 .set_language(&tree_sitter_c::LANGUAGE.into())
50 .expect("Failed to load C grammar");
51 Self { parser, is_c: true }
52 }
53
54 /// Walk the AST and extract entities.
55 fn walk_tree(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected