stadelmanma / tree-sitter-fortran

Fortran grammar for tree-sitter
MIT License
30 stars 15 forks source link

Support subroutines and functions #14

Closed stadelmanma closed 6 years ago

stadelmanma commented 6 years ago

These shouldn't be too hard because I'll only need rules for the first and last lines.

Additional details, apparently everything can have a contains block

I think the best practice might be to generalize the contains "section" and just share it across derived types, functions, subroutines and modules. This will allow some technically invalid statements but generate a simpler grammar.