txtinput.Text = strScript
result = LSharp.Runtime.EvalString(strScript)
txtDebug.Text = result.ToString
Having difficulty with evalstring:
when given: (+ 3 4)
returns 7
And it seem to work correctly with other simple arithmetic.
when given: (car '(a b c))
returns a
Which is good.
But when I give it: (cdr '(a b c))
returns : LSharp.Cons
when what I want is (b c)
so I think its just returning the type... I'm not sure... But I'm
wondering how I can convert it to a string so it will read (b c)?
Thanks in advance
Steve
You could try:
txtDebug.Text = LSharp.Printer.WriteToString(result)
which is what Cons.ToString() does in the most current version.
You might want to grab the latest sources from SVN and compile them
yourself, to ensure you have the latest bits.