Opened 16 years ago
Closed 16 years ago
#182 closed enhancement (fixed)
add evaluateEvaluatedFunction method to Executor
| Reported by: | zirkel | Owned by: | zirkel |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | semantics | Version: | |
| Keywords: | evaluator, symbolic, value | Cc: |
Description
There is a generic value that just wraps a symbolic value. Might not need the EvaluatedFunction value, because there is a SymbolicValue. There is support for evaluated functions in the symbolic package. Think about this.
We're given something that looks like "f(e1, e2,...,en)" and an environment. Loop from 1 to n and evaluate each expression in the environment. Get symbolic expression associate with f. This should be created at the beginning of the program. There is a method getOrCreateSymbolicConstant(name, type)
Make an array of the symbolic expressions extracted form each value. Call apply(function, values[]). This returns a symbolic expression. Wrap this in a symbolic value and return it.

This should have said "Evaluator" instead of "Executor" in the title.
This has now been added, including related changes to the DynamicFactory.