finesse.script.legacy.KatParser.parse

KatParser.parse(text, model=None, **kwargs)[source]

Parse kat code into a model.

Parameters

text : str

String containing the kat code to be parsed.

model : Model, optional

Model object to add components to. If not specified, a new model will be created.

ignored_blocks : list, optional

A list of names of FTBLOCK sections in the kat code to leave out of the model; defaults to empty list.

Returns

Model

The constructed model.

Raises

KatParserError

If an error occurs during parsing or building.