AI Controller Input Syntax

Hi folks, I'm building an AI controller and looking for ideal input syntax. There are just too many variations, which put my decision making at a pinch.

I'll give out what I think the best out of all, but feel free to expand or introduce new idea.

This is what is required from the AI to do:

move to actor01 from the left for 1 sec. at the speed of walking#1:

Spoiler
movement = [to]["actor01"]
, action = [walk], time = [1];
​

#2

Spoiler
walkTo("actor01",4)time(1);
#3

Spoiler
move(1) = ["actor01"][walk]
;
​

#4

Spoiler
{target = "actor01",action = "walk to",direction = "left",time = 1},
The Engine will define the movement route and action according to the AI characteristic. It's mod-able, so users can redefine the input syntax and apply them to x characters or global characteristic or everyone in the game, but the definition of the controller input isn't what I'm concerned, it's the input syntax itself.

Thanks for the participation.​
Why are you writing your own syntax for these things when Ruby itself is so syntactically lenient that it lends itself beautifully to domain specific languages?

What you're talking about building is a domain specific language. There's no reason to further complicate things by having to create your own syntax and parser for said syntax. Even example 4 of your various options is essentially a hash construct; why aren't you using that?

{ :target => 'actor01', :action => :walk_to, :direction => :left, :time => 1}In my opinion, that kind of structure is the easiest for both users to understand and for developers to make use of.Even your other examples could be converted into pure Ruby code and remain almost intact, by the way.
In fact, that's exactly how RPG Maker handles the movement for characters -- it's an RPG::MoveRoute object which contains a list of RPG::MoveCommand objects. Each MoveCommand object has a code and parameters passed to it.
I'm not sure what would be the difference between your system and...what the editor provides.
@Solistra

Thanks, I'll keep that in mind.

@Grem & Tsukihime

This is an AI controller, it's a couple levels above the movement command & move route. I'll use the Solistra pick as an example:

#//Body Guard Controller{ :target => ['actor01'], :action => [:guard_from, :alert], :direction => [0], #//no direction specified -> every direction :time => [0] #//no time specify -> infinite time}And we can set to just follow the 'actor01'

{ :target => ['actor01'], :action => [:follow_close,:alert], :direction => [0], #//no direction specified -> every direction :time => [0] #//no time specify -> infinite time}Scouting the front line

Code:
{  :target => ['actor01'],  :action => [:search,:alert],  :direction => [:front_line],  :time => [0]       #//no time specify -> infinite time}

Original thread: https://forums.rpgmakerweb.com/threads/ai-controller-input-syntax.26079/