Read the namelist file at path, then drive the parse. The file
is the only on-disk touch; the walk runs on the in-memory lines
(shared with the from-buffer path, parse_from_lines).
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
character(len=:),
private,
allocatable
::
lines(:)
integer,
private
::
n_lines
logical,
private
::
ok
Source Code
subroutine parse_file(this,path,errors,n_err)!! Read the namelist file at `path`, then drive the parse. The file!! is the only on-disk touch; the walk runs on the in-memory lines!! (shared with the from-buffer path, parse_from_lines).type(nml_schema_t),intent(inout)::thischaracter(len=*),intent(in)::pathcharacter(len=:),allocatable,intent(inout)::errors(:)integer,intent(inout)::n_errcharacter(len=:),allocatable::lines(:)integer::n_lineslogical::okcall read_lines(path,lines,n_lines,ok)if(.not.ok)then call add_err(errors,n_err,path//": cannot open file")return end if call parse_from_lines(this,lines,n_lines,path,errors,n_err)end subroutine parse_file