GRB Module Pack
Community Forums/Showcase/GRB Module Pack
| ||
Hi, ive made a few modules over the last months and wanted to share with the comunity =) i hope someone has use for these or learn how to do something, or how NOT to do something ;) i atleast had fun making them. ENJOY! PS!! most sources has commented TEST sections at he bottom of the file. DOWNLOAD: http://grable.cjb.net/files/grb.mod.rar GRB.BinarySearch ----------------------------------------------------- contains various binary search functions & objects !! not sure wether this is better or worse then BRL.Map.TMap, but it uses an Array instead of a linked list !! Function BinaryLookup:Int( a:Object[], value:Object) Function BinaryStringLookup:Int( a:String[], value:String) Type TBinaryKey Type TBinaryKeyList Type TBinaryMap Extends TBinaryKeyList GRB.FormatString ----------------------------------------------------- contains 1 function Format() similar to Delphi's format and C's sprintf() Format:String( Pattern:String, A:String,B:String ...) GRB.ScanParse ----------------------------------------------------- contains a String/TStream scanner and parser template !! this module is a bit messy !! Type TToken Type TScanner Type TParser GRB.LISP ----------------------------------------------------- contains a LISP parser & evaluator REQUIRES: GRB.ScanParse GRB.FormatString GRB.BinarySearch Type TCell Type TLispT Extends TCell Type TLispNil Extends TCell Type TLispNative Extends TCell Type TLispFunc Extends TCell Type TLispMacro Extends TLispFunc Type TLispNumber Extends TCell Type TLispString Extends TCell Type TLispSymbol Extends TCell Type TLispEnv Type TLispContext + various native functions GRB.Threads ----------------------------------------------------- contains win32 thread functions & objects Type TCriticalSection Type TThread Abstract Type TThreadException Type TPointerThread Extends TThread Type TObjectThread Extends TThread Type TThreadEx Extends TThread Abstract GRB.XML ----------------------------------------------------- contains XML parser, can manipulate xml node trees at runtime & generate XML source from node trees. REQUIRES: GRB.ScanParse GRB.FormatString Type TXml Type TXmlNode Type TXmlAttrib Type TXmlAttribList Type TEnumChildren Type TXmlNodeEnumChild Type TXmlParser Extends TParser |
| ||
Seems to be a very useful contribution. Thanks a lot! |
| ||
Thanks =) ive updated the LISP module some for those interested. Fixed some bugs, added some more natives and made implemented support for user types. i usaly publish small changes all the time to the download. or you can check http://grable.cjb.net/index.cgi?News for larger updates. |