1 unstable release
0.0.1 | Jul 18, 2024 |
---|---|
0.0.1-rc1 |
|
#20 in #fortran
185 downloads per month
Used in fortitude
6MB
167K
SLoC
tree-sitter-fortran
Fortran grammar for tree-sitter. Adapted from this Fortran grammar.
lib.rs
:
This crate provides fortran language support for the tree-sitter parsing library.
Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:
let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(&tree_sitter_fortran::language()).expect("Error loading fortran grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.7–4MB
~71K SLoC