Thelop Name Pattern

ThelopNamePatterns are used to restrict the possible arrangements of ThelopWords used for ThelopNames.


The ThelopNamePatterns are written using the abbreviations for the ThelopWordClasses: Objects (O), Actions (A), Properties (P) and Modifiers (M). An appended + character means that there may be one or more repetitions of the same word class (P+ stands for P, PP, PPP ...)

Any object or property word (O or P) may be followed by one or more modifier words (M), that may change the WordSignature (meaning, corresponding parameters) of the "parent word".

Any complete name may be followed by one or more modifiers that change the meaning of the whole function. These modifiers are called "global modifiers".

A complete name may have a phrase "RetObject" or "RetProperty" added, to display what the function returns. If this is obvious, the phrase may be dropped. See: ThelopRule.


A "basic ThelopNamePattern" is a pattern with no modifiers. Only basic patterns are listed here. Examples are given with and without added modifiers.


Basic pattern: OA (ObjectAction)

used for unary actions.

Examples: ScreenClear(), FileDel(filename), WindowClose(window), ImageFree(image), WindowCloseAll(), ImageCvtColorspaceGray(image)


Basic pattern OAP+ (ObjectActionProperties)

typically used for accessing object properties by using the "Set" or "Get" actions.

Examples: FileSetSize(filename,size), SystemGetUserName(pString), ImageGetWidthHeight(image,pWidth,pHeight), WindowSetRect(window,rectangle), ImageGetPixel(image,x,y,pColor), ImageGetPixelGray(image,x,y,&pColorGray), WindowGetChildFirst(window,pChildWindow)


Basic pattern: OAO (ObjectActionObject)

used for binary actions.

Examples: StrFindChr(string,character), FileAppLine(filename,string), ImageCreateFile(filename), RectCmp(rectangle1, rectangle2), PointInPoligon(point,poligon), FileLockPosSizeRetErr(file,position,size),

Comments: According to ThelopRule the second object word may be dropped if it is identical to the primary object word ("RectCmp" instead of "RectCmpRect").


(work in progress...)


See also: LanguageOrientedProgramming, ThelopLanguage, ThelopRule, ThelopWordExample, ThelopNameExample, ThelopDictionary


CategoryThelop


EditText of this page (last edited September 1, 2001) or FindPage with title or text search