Login  Register

Re: How can I specify the bindings when evaluating an expression?

Posted by Marcus Denker-4 on Dec 28, 2014; 10:21am
URL: https://forum.world.st/How-can-I-specify-the-bindings-when-evaluating-an-expression-tp4794352p4797192.html


> On 23 Dec 2014, at 09:45, stepharo <[hidden email]> wrote:
>
> Marcus
>
> could you add this issue somewhere because this is something that I'm expected from a compiler
>

Yes… I will check. Right now the API is too much focused on implementation artefacts vs. concepts.
(requestor vs. binding, for example).

In general, we need to do a *real* pass over the API of the compiler.
But we can only do that after we remove the old one…

        Marcus

> Stef
> Le 6/12/14 11:18, Marcus Denker a écrit :
>>> On 05 Dec 2014, at 15:18, stepharo <[hidden email]> wrote:
>>>
>>> I would like to be able to express
>>>
>>> Compiler new
>>>    bindings: { a -> 3. b -> 4};
>>>    evaluate: 'a + b';
>>>    result
>>> and get 7
>>>
>>> How can I do that?
>>>
>> Not directly, as evaluate is just a doit… but it can be added
>> as the machinery is there for evaluating in context in the debugger.
>>
>> I will have a look but not this weekend.
>>
>> Marcus
>>
>>
>>
>
>