Re: Creating SISC IDE
"Scott G. Miller" <[email protected]> Thu, 21 Feb 2008 13:22:05 -0600
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Feb 21, 2008 at 1:13 PM, Dan Edmunds <[email protected]> wrote: > Hi, > > I'm trying to create a Scheme IDE using SISC as my interpreter. > At the moment I plan to hold hold a reference to the > sisc.interpreter.Interpreter class and feeding the scheme source files into > it. If you use a SourceReader as the input to evalInput, you should be able to just use the values of line, column, and sourceFile, which are public fields of SourceReader. They should be set to the file position *after* reading the error causing data. You can do the same thing but read the expression yourself (using the dynamic environment's parser), taking note of the line/column data before reading so that you have the start of the offending characters as well. The dynamic environment is found in the "dynenv" field of an Interpreter, also public. Of course, all of this is unsupported. :) Scott ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/