Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Lisp > Type inferencin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 13121 of 13900
Post > Topic >>

Type inferencing code for CL

by dc <david_creelman@[EMAIL PROTECTED] > Jul 22, 2008 at 08:05 PM

Hi,
I'm writing a small utility that allows me to write lispy code that
gets transformed into a pascal like scripting language. It can do some
quite useful things already and saves me a fair bit of typing, but I'd
really like it if I could do things like :-

(pasvar j)
(setv j "hello")
(pasvar k)
(setv k 123)

and I would get...

var j string;
var k integer;
j := 'hello';
k := 123;

....without having to say what type j and k are from the lisp code, ie.
I'd like it if my utility could work out what types j and k are.
Obviously, CL can do this, but I've not easily been able to find where
in SBCL this happens and I would have thought that people would have
done this sort of thing before for translation tools like this.

Does anyone know of a simple way to do type inferencing for a
destination language or perhaps where I could find one as a library?

Thanks & Regards
David
 




 7 Posts in Topic:
Type inferencing code for CL
dc <david_creelman@[EM  2008-07-22 20:05:42 
Re: Type inferencing code for CL
pjb@[EMAIL PROTECTED] (P  2008-07-23 08:39:49 
Re: Type inferencing code for CL
84jkdl202@[EMAIL PROTECTE  2008-07-25 15:03:33 
Re: Type inferencing code for CL
dc <david_creelman@[EM  2008-07-28 18:46:08 
Re: Type inferencing code for CL
pjb@[EMAIL PROTECTED] (P  2008-07-29 07:41:40 
Re: Type inferencing code for CL
Mark Tarver <dr.mtarve  2008-07-29 00:09:19 
Re: Type inferencing code for CL
dc <creelman.david@[EM  2008-08-15 06:29:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 18:04:10 CST 2008.