stadelmanma / tree-sitter-fortran

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

Support the module construct #23

Closed stadelmanma closed 6 years ago

stadelmanma commented 6 years ago

This will be relatively simple since I can essentially reuse the same bits and pieces from the program construct. The only minor change is that I think only subroutines and functions can go in the CONTAINS section not regular executable statements.

Reference: http://www.lahey.com/docs/lfpro78help/hh_start.htm#F95LSProgram_UnitsModule.htm

I'll do this after #14, #25 and #26 since modules can contain all of these and I'll also have a full implemented "contains" rule by then as well.