Hi Mark,
On Sat, Jan 28, 2012 at 8:12 PM, Mark H Weaver m...@netris.org wrote:
In short, this single function allows code to do the ideal thing
relatively painlessly. Typical usage might be something like this:
SCM
my_eval (const char *string, const char *file_name,
long line,
Greets,
On Sun 29 Jan 2012 05:12, Mark H Weaver m...@netris.org writes:
Andy Wingo wi...@pobox.com writes:
On Sat 28 Jan 2012 20:47, Mark H Weaver m...@netris.org writes:
Andy Wingo wi...@pobox.com writes:
Didn't we settle on eval-string, with the #:file and #:line kwargs? See
eval-string
Hi Andy,
On Sun, Jan 29, 2012 at 12:28 PM, Andy Wingo wi...@pobox.com wrote:
* Bruce's original problem statement says nothing about columns.
That's because I, personally, in my application, didn't put forth the effort
originally (~15 years ago) and it's too hard to retrofit.
* The
Andy Wingo wi...@pobox.com writes:
Keyword arguments suit this task much better.
Okay, I have a fresh idea for your consideration.
Let's provide a more general facility to make keyword arguments more
convenient to use from C, while avoiding repeatedly interning them. I
propose a new macro
Hi Mark,
On Fri, Jan 27, 2012 at 11:02 PM, Mark H Weaver m...@netris.org wrote:
Hi Bruce,
In case you didn't see the other thread here on guile-devel:
I read some of it.
... with Guile 2.0.4 the error message would
have been something like this:
Hi,
On Sat 28 Jan 2012 17:58, Bruce Korb bruce.k...@gmail.com writes:
Bruce Korb bruce.k...@gmail.com writes:
I need to be able to locate a guile scheme expression in my ASCII
text input and hand it off to Guile, telling it the file name and
line number and column number of where I found
Andy Wingo wi...@pobox.com writes:
On Sat 28 Jan 2012 17:58, Bruce Korb bruce.k...@gmail.com writes:
Bruce Korb bruce.k...@gmail.com writes:
I need to be able to locate a guile scheme expression in my ASCII
text input and hand it off to Guile, telling it the file name and
line number and
On Sat 28 Jan 2012 20:47, Mark H Weaver m...@netris.org writes:
Andy Wingo wi...@pobox.com writes:
On Sat 28 Jan 2012 17:58, Bruce Korb bruce.k...@gmail.com writes:
Bruce Korb bruce.k...@gmail.com writes:
I need to be able to locate a guile scheme expression in my ASCII
text input and
Also:
http://lists.gnu.org/archive/html/guile-devel/2011-03/msg00091.html
Andy
--
http://wingolog.org/
Andy Wingo wi...@pobox.com writes:
On Sat 28 Jan 2012 20:47, Mark H Weaver m...@netris.org writes:
Andy Wingo wi...@pobox.com writes:
Didn't we settle on eval-string, with the #:file and #:line kwargs? See
eval-string in the manual.
I guess the code to use that from C would look something
On 01/26/12 22:19, Mark H Weaver wrote:
Then either it ought to have printed the location, or there are new
wrinkles in the file/line number stuff that I need to know about.
Your code looks good to me, and should allow source locations to be
properly reported in error messages.
It turns out
Bruce Korb bruce.k...@gmail.com writes:
Ideally, you would also call 'scm_set_port_column_x' here. Otherwise,
the column numbers of errors on the first line will not be reported
properly.
All I can do is set the first line column to zero.
I don't track the columns.
In that case, don't
Hi Bruce,
In case you didn't see the other thread here on guile-devel: the bugs
with this error message (and a few others) have been fixed on the
stable-2.0 branch, such that with Guile 2.0.4 the error message would
have been something like this:
On 01/25/12 20:22, Mike Gran wrote:
From: Bruce Korbbruce.k...@gmail.com
unknown location: definition in expression context in subform optname-from
of _^
Scheme evaluation error. AutoGen ABEND-ing in template
/old-home/ROOT/usr/local/share/autogen/aginfo.tpl on line 163
To: Mike Gran spk...@yahoo.com
For some reason, it thinks that you're not at the top level, but
instead in the middle of some expression.
It might be saying that you've missed a close parenthesis
on a define somewhere above.
The answer, then, is I don't know. The text handed off to the
Bruce Korb bruce.k...@gmail.com writes:
On 01/25/12 20:22, Mike Gran wrote:
From: Bruce Korbbruce.k...@gmail.com
unknown location: definition in expression context in subform
optname-from
of _^
The other interesting thing here is that the error message above says
_^ instead of the full
On 01/26/12 16:10, Mark H Weaver wrote:
unknown location: definition in expression context in subform optname-from
of _^
The other interesting thing here is that the error message above says
_^ instead of the full string A-Z_^. That suggests that the string
literal was not properly read
Bruce Korb bruce.k...@gmail.com writes:
On 01/26/12 16:10, Mark H Weaver wrote:
unknown location: definition in expression context in subform
optname-from
of _^
The other interesting thing here is that the error message above says
_^ instead of the full string A-Z_^. That suggests
On 01/26/12 18:26, Mark H Weaver wrote:
Too bad. I do prefer clue-ful error messages and unknown location
just wasn't the helpful clue I needed. Perhaps just use improper location?
invalid location? Just not unknown location.
That part of the error message (where unknown location was
Hello,
/* Read expressions from that port; ignore the values. */
for (;;) {
SCM form = scm_read(port);
if (SCM_EOF_OBJECT_P(form))
break;
ans = scm_primitive_eval_x(form);
}
return ans;
}
}
Every
On 01/26/12 18:59, Noah Lavine wrote:
Hello,
/* Read expressions from that port; ignore the values. */
for (;;) {
SCM form = scm_read(port);
if (SCM_EOF_OBJECT_P(form))
break;
ans = scm_primitive_eval_x(form);
}
Hi Bruce,
Bruce Korb bruce.k...@gmail.com writes:
On 01/26/12 18:26, Mark H Weaver wrote:
Too bad. I do prefer clue-ful error messages and unknown location
just wasn't the helpful clue I needed. Perhaps just use improper
location?
invalid location? Just not unknown location.
That part
Hi Noah,
Noah Lavine noah.b.lav...@gmail.com writes:
I am not an expert, but this is my guess about what's happening: you
get the form from the file with scm_read. scm_read returns a regular
s-expression, not a syntax object.
Actually, source location information is not stored in syntax
Hi,
Say, what??? I don't understand.
ice-9/psyntax.scm:866:30: In procedure dobody:
ice-9/psyntax.scm:866:30: Syntax error:
unknown location: definition in expression context in subform optname-from of
_^
Scheme evaluation error. AutoGen ABEND-ing in template
/old-home/ROOT/usr
From: Bruce Korb bruce.k...@gmail.com
unknown location: definition in expression context in subform optname-from
of _^
Scheme evaluation error. AutoGen ABEND-ing in template
/old-home/ROOT/usr/local/share/autogen/aginfo.tpl on line 163
Failing Guile command
25 matches
Mail list logo