This crate provides Solidity language support for the tree-sitter parsing library.
let code = ""; let mut parser = tree_sitter::Parser::new(); parser.set_language(tree_sitter_solidity::language()).expect("Error loading Solidity grammar"); let tree = parser.parse(code, None).unwrap();
The source of the Solidity tree-sitter grammar description.
The content of the
node-types.json file for this grammar.