concepts.dm.pdsketch.parsers.pdsketch_parser.parse_expression#

parse_expression(domain, string, variables=None)[source]#

Parse an expression from a string.

Parameters:
  • domain (Domain) – the domain.

  • string (str) – the string of the expression.

  • variables (Sequence[Variable] | None) – a list of variables that are used in the expression.

Returns:

the expression.

Return type:

Expression