Branch: Tag:

2001-02-06

2001-02-06 15:43:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support for @int and @mixed.

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.15

66:    "mapping" : CONTAINERKEYWORD, "member" : DELIMITERKEYWORD,    "multiset" : CONTAINERKEYWORD, "index" : DELIMITERKEYWORD,    "array" : CONTAINERKEYWORD, "elem" : DELIMITERKEYWORD, +  "int" : CONTAINERKEYWORD, "value" : DELIMITERKEYWORD, +  "mixed" : CONTAINERKEYWORD, "type" : DELIMITERKEYWORD,       "dl" : CONTAINERKEYWORD, "item" : DELIMITERKEYWORD,   ]);
77:    "mapping" : ({ "name" }),    "array" : ({ "name" }),    "multiset" : ({ "name" }), +  "int" : ({ "name" }), +  "mixed" : ({ "name" }),   ]);      static constant standard = (< "note", "example", "seealso", "deprecated" >);
92:    "mapping" : (< "member" >),    "multiset": (< "index" >),    "array" : (< "elem" >), +  "int" : (< "value" >), +  "mixed" : (< "type" >),    "dl" : (< "item" >),   ]);   
116:    "index" : indexArgHandler,    "deprecated" : deprArgHandler,    "section" : sectionArgHandler, +  "type" : typeArgHandler,   ]);      static string memberArgHandler(string keyword, string arg) {
196:    return ([ "name" : arg ]);   }    + static string typeArgHandler(string keyword, string arg) { +  // werror("This is the @type arg handler "); +  .PikeParser parser = .PikeParser(arg); +  // werror("&&& %O\n", arg); +  Type t = parser->parseOrType(); +  if (!t) +  parseError("@member: expected type, got %O", arg); +  // werror("%%%%%% got type == %O\n", t->xml()); +  parser->eat(EOF); +  return xmltag("type", t->xml()); + } +    static mapping(string : string) standardArgHandler(string keyword, string arg)   {    array(string) args = ({});