3 releases (breaking)

0.2.0 Oct 24, 2024
0.1.0 Sep 26, 2024
0.0.1 Jul 18, 2024
0.0.1-rc1 Aug 28, 2024

#136 in Parser tooling

Download history 32/week @ 2024-07-19 3/week @ 2024-07-26 1/week @ 2024-08-02 70/week @ 2024-08-23 204/week @ 2024-08-30 12/week @ 2024-09-06 363/week @ 2024-09-13 253/week @ 2024-09-20 569/week @ 2024-09-27 565/week @ 2024-10-04 130/week @ 2024-10-11 407/week @ 2024-10-18 133/week @ 2024-10-25 102/week @ 2024-11-01

977 downloads per month
Used in fortitude

MIT license

16MB
379K SLoC

C 377K SLoC // 0.0% comments JavaScript 1.5K SLoC // 0.1% comments Scheme 206 SLoC // 0.0% comments Rust 34 SLoC // 0.1% comments

tree-sitter-fortran

Build Status

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 = r#"
"#;
let mut parser = tree_sitter::Parser::new();
let language = tree_sitter_fortran::LANGUAGE;
parser
    .set_language(&language.into())
    .expect("Error loading Fortran parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies