Mathics3 / mathics-core

An open-source Mathematica. This repository contains the Python modules for WL Built-in functions, variables, core primitives, e.g. Symbol, a parser to create Expressions, and an evaluator to execute them.
https://mathics.org
Other
782 stars 48 forks source link

Add PRE_EVALUATION_HOOK to facilitate debugging. #1126

Closed rocky closed 1 month ago

rocky commented 1 month ago

This allows us to modify definitions at the top-level to trace or debug.

rocky commented 1 month ago

See https://github.com/Mathics3/mathics3-debugger/tree/add-top-level-evaluation-hook for an example of how this is used.

mmatera commented 1 month ago

LGTM