4 releases (breaking)

0.3.0 Nov 29, 2024
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

#154 in Parser tooling

Download history 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 122/week @ 2024-11-01 817/week @ 2024-11-08 684/week @ 2024-11-15 751/week @ 2024-11-22 1442/week @ 2024-11-29 1321/week @ 2024-12-06

4,411 downloads per month
Used in fortitude

MIT license

22MB
493K SLoC

C 491K SLoC // 0.0% comments JavaScript 2K 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