[alicebot-archcomm] RE: [alicebot-general] 3D FACEs
Jon Baer
alicebot-archcomm@list.alicebot.org
Mon, 19 Nov 2001 03:45:48 -0500
Conan Callen wrote:
> Yea, I agree, what I brought up in my orginal post is implementation specific.
> Sometimes I get confused about when people are discussing AIML or the
> implementation of program B. Being that I have a few c++ implementations
> of Aiml intrepreters, I tend to get focused on the spec and where
> its going rather then a specific implementation.
For some reason I really wish that other implementions would @ least follow how the whole "TinyAlice" thing is setup.
Where basically you start out with absolutely nothing and you assign the tag names and the off shoot processors (or
probably in more common language TagHandlers in SAX or whatnot). Its obvious that the algorithm is already there in
C/C++, but from looking @ what I saw previously it followed the routine of AIMLParser to where alot of parsing was
done one by one.
I think (personal opinion) that 2 things should be observed when handling a tag. First we have the <template> tag,
then we have the namespace of the element (coinciding with the template name), and the element name itself. So:
<template>
<foo:bar>Here is some <set name="action">text</set> action.</foo:bar>
</template>
In "TinyAlice" you would have the interpreter setup with:
<processor name="bar" namespace="foo" class="MyFooProcessor.class"/>
The idea is that if this is say an event in AIML and had:
<aiml:event name="eventHandler1">This is some event.</aiml:event>
There should be some way to be able to throw events which can be either A) handled or B) ignored (in all
implementations). Im not really proposing another new tag, just opening discussion before the barage of third-party
stuff gets thrown in and I really need some type of event handling.
- Jon