Module parser

Module parser 

Source
Expand description

Fortran source code parsing utilities.

This module provides the infrastructure for reading and tokenizing Fortran source:

  • CharFilter: Iterator adapter that identifies strings, comments, and code regions
  • InputStream: Joins continuation lines (&) and splits semicolon-separated statements
  • patterns: Precompiled regex patterns for Fortran syntax elements

The parser handles Fortran’s line-continuation semantics, string literals (both single and double quoted), and inline comments while preserving the original structure for accurate reformatting.

Re-exports§

pub use char_filter::CharFilter;
pub use char_filter::StringDelimiter;
pub use stream::FortranLine;
pub use stream::InputStream;

Modules§

char_filter
patterns
stream