Call dispatcher #26
Reference in New Issue
Block a user
Delete Branch "feat/call-dispatcher"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR refactors parts of the Midas and Python typers handling function calls, overload matching, argument matchin, etc. into a dedicate
CallDispatcherclass. This class is generic on the AST expression type so that it can be used for both Midas and Python AST expressions.Some parts, such as function unwrapping, have been improved too.
Other small features including parsing of binary operations (plus and minus) in Midas definitions, definition of
min/maxfunctions in the preamble, and improvements to the evaluation of constraints on literals (e.g. list / dict items, unary operations, error handling)