finesse.model.Model.parse_file¶
- Model.parse_file(path, spec=None)[source]¶
Parses kat script from a file and adds the resulting objects to the model.
- Parameters
path : str or
io.FileIO
The path or file object to read kat script from. If an open file object is passed, it will be read from and left open. If a path is passed, it will be opened, read from, then closed.
spec :
spec.BaseSpec
, optionalThe language specification to use. Defaults to
script.spec.KatSpec
.
See also
parse
Parse script.
parse_legacy
Parse Finesse 2 kat script.
parse_legacy_file
Parse Finesse 2 kat script file.