On Fri, Oct 24, 2008 at 7:41 AM, Russell Wallace
<[EMAIL PROTECTED]>wrote:

> On Fri, Oct 24, 2008 at 3:37 PM, Eric Burton <[EMAIL PROTECTED]> wrote:
> > Due to a characteristic paucity of datatypes, all powerful, and a
> > terse, readable syntax, I usually recommend Python for any project
> > that is just out the gate. It's my favourite way by far at present to
> > mangle huge tables. By far!
>
> Python is definitely a very good language. Unless this has changed
> since I last looked at it, though, it doesn't expose the parse tree,
> so isn't suitable for representing AI content?
>

You can get the parse tree for an arbitrary string of Python (and even make
it somewhat human readable), but I'm not sure if you can get it for
underlying tree.  Once you have a parse tree, I believe that you can execute
it.

Josh
Look into the parser module.


>
> -------------------------------------------
> agi
> Archives: https://www.listbox.com/member/archive/303/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/303/
> Modify Your Subscription:
> https://www.listbox.com/member/?&;
> Powered by Listbox: http://www.listbox.com
>



-------------------------------------------
agi
Archives: https://www.listbox.com/member/archive/303/=now
RSS Feed: https://www.listbox.com/member/archive/rss/303/
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=8660244&id_secret=117534816-b15a34
Powered by Listbox: http://www.listbox.com

Reply via email to