This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Per Bothner wrote:
... Why not just: return (Procedure) scheme.eval("(lambda () "+rule+")");
It's not perfect (for one thing a syntax error will display the wrong column number), but it is simple and documented.
Scheme.eval(InPort, Envronment) can be used to get the column number right.
http://www.gnu.org/software/kawa/Evaluating-Scheme-expressions-from-Java.html
I meant the column number is off because we prepend "(lambda () ". And that is because we want a Procedure ("thunk") rather than a single result. Scheme.eval(InPort, Environment) won't help with that. -- --Per Bothner per@bothner.com http://per.bothner.com/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |