[Opensim-dev] Organization and naming patterns of commands on the console

Dr Scofield DrScofield at xyzzyxyzzy.net
Thu Feb 5 17:27:57 UTC 2009


Justin Clark-Casey wrote:
> Gary Chernega wrote:
>> A common parsing routine that used keywords as commands and triggered 
>> off of those would work best.
>>
>> show users:        >> users module receives: show
>>         The parser would be looking for the module level first (users 
>> etc), and since it is the 2nd word, it would strip it, and pass the 
>> remaining text to the users module.
>>
>> users show:        >> users module receives: show
>>         The parser stripped module (users) from beginning, and passed 
>> remainder of text line
>>
>> region load oar \filespec -x 123 -y 234:        >> region module would 
>> receive: load oar \filespec -x 123 -y 234
>>
>> Parser only parses off the module, and the command module decides what 
>> to do with what it gets.
>>
>> So ->   help region  is functionally the same as  region help
>> Or ->    region load oar zzyy == load oar region zzyy  ==  load oar zzyy 
>> region   (since region is stripped out no matter where it is, and 
>> remainder is passed to region command handler)
>>
>> Am I clear enough in plain text?
> 
> I see where you're going, although I'm not a great fan of "there's more than one way to execute that command", since it 
> complicates the code and potentially the documentation.

me neither... reminds me a bit of an uncle of my wife (philosophy prof) who once
claimed that logically the sentences

	"the lion roars"

and

	"the roar lions"

would be the same... nobody quite believed him for some strange reason...

-- 
dr dirk husemann ---- virtual worlds research ---- ibm zurich research lab
SL: dr scofield ---- drscofield at xyzzyxyzzy.net ---- http://xyzzyxyzzy.net/
RL: hud at zurich.ibm.com - +41 44 724 8573 - http://www.zurich.ibm.com/~hud/



More information about the Opensim-dev mailing list