finesse.model.Model.parse

Model.parse(text, spec=None)[source]

Parses kat script and adds the resulting objects to the model.

Parameters
textstr

The kat script to parse.

specKatSpec, optional

The language specification to use. Defaults to the shared KatSpec instance.

See also

parse_file

Parse script file.

parse_legacy

Parse Finesse 2 kat script.

parse_legacy_file

Parse Finesse 2 kat script file.