concepts.pdsketch.parsers.pdsketch_v3_parser.parse_expression3#

parse_expression3(domain, string, state=None, variables=None, auto_constant_guess=True)[source]#

Parse an expression.

Parameters:
  • domain (Domain) – the domain object.

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

  • state (State | None) – the current state, containing objects.

  • variables (Sequence[Variable] | None) – the variables.

  • auto_constant_guess (bool) – whether to guess whether a variable is a constant.

Returns:

the parsed expression.

Return type:

Expression