finesse.script.legacy.KatParser.parse

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

Parse kat code into a model.

Parameters:
textstr

String containing the kat code to be parsed.

modelModel, optional

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

ignored_blockslist, 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.