Re: [IDEA] External argument parser

From: Stephen Wolfe (siv@CYBERENET.NET)
Date: 08/26/98


> I want to suggest a new type of command argument parser for CircleMUD. Instead
> of passing full argument to ACMD and then converting it to few strings and
> processing it with get_char_vis, get_obj_vis etc we can parse all arguments
> before calling ACMD, and pass only pointers to prepared linked lists to it.
> This way, most ACMD functions will become a lot smaller and easier to
> understand and even some parsing bugs will disappear. (for example: do_stat...
> currently if you have a sword in your hand and two swords in inventory, you
> _can't_ access first sword in inventory).

an alternative that i think might be better is changing it to an argv and
argc type arrangement..um..yeah..i guess that's all i have to say about
that..

siv


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST