bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] How to evaluate a block of source like a file?


From: Juergen Sauermann
Subject: Re: [Bug-apl] How to evaluate a block of source like a file?
Date: Tue, 05 Aug 2014 17:57:09 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Elias,

I guess something like that exists already. Have look at
how )LOAD works for .apl files. There is a stack of file descriptors
for the files read by Input and you can push an open file descriptor onto it. The
only thing that doesn't work is to stop in the middle of a file (unless you insert
a ]NEXTFILE command at that point.

/// Jürgen


On 08/05/2014 05:39 PM, Elias Mårtenson wrote:
Hello Jürgen,

What I mean by the somewhat mysterious subject is that I have had a request to implement (or rather, improve) a feature in the Emacs Mode that allows a user to evaluate all or part of a file.

Specifically, what is needed is a way for me to take a set of source lines (usually a portion of a source .apl file) and pass it to some function that will load execute those lines in exactly the same manner as if the content had been saved to a file and then loaded using )COPY.

Ideally, I would also need the ability to specify the name of the file and starting line number. This is so that the symbol metadata (filename and line number) are correct in functions that are defined in this manner.

Would it be possible for you to implement a function that provides such interface?

Regards,
Elias


reply via email to

[Prev in Thread] Current Thread [Next in Thread]