From larryl at bredband.net Fri Apr 20 08:22:27 2007 From: larryl at bredband.net (larryl at bredband.net) Date: Fri, 20 Apr 2007 10:22:27 +0200 Subject: [linedit-devel] patch Message-ID: <20070420082227.LYPX2732.mxfep04.bredband.com@mxfep04> patch.txt contains - user reader hook this can be used to implement simple string commands as "show cpu" that could be translated to the string "(show-cpu)" for example. - user symbol hook after a line has been entered by the user, it is feed to READ-FROM-STRING that reads each peace and feeds it to a user-hook function that can replace symbols etc.. - user completion hook if user types string commands, those doesn't exist as symbols in any package so a user side completion function can take care of completing "show cpu" cli.lisp contains an example of above features enjoy! /larry liimatainen -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: patch.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cli.lisp Type: application/octet-stream Size: 2630 bytes Desc: not available URL: From _deepfire at feelingofgreen.ru Sat Apr 21 09:52:13 2007 From: _deepfire at feelingofgreen.ru (Samium Gromoff) Date: Sat, 21 Apr 2007 13:52:13 +0400 Subject: [linedit-devel] patch In-Reply-To: <20070420082227.LYPX2732.mxfep04.bredband.com@mxfep04> References: <20070420082227.LYPX2732.mxfep04.bredband.com@mxfep04> Message-ID: <87y7kmyrzm.wl@betelheise.deep.net> At Fri, 20 Apr 2007 10:22:27 +0200, wrote: > > [1 ] > patch.txt contains > - user reader hook > this can be used to implement simple string commands as "show cpu" that could be translated to the string "(show-cpu)" for example. > - user symbol hook > after a line has been entered by the user, it is feed to READ-FROM-STRING that reads each peace and feeds it to a user-hook function that can replace symbols etc.. > - user completion hook > if user types string commands, those doesn't exist as symbols in any package so a user side completion > function can take care of completing "show cpu" > > cli.lisp > contains an example of above features Looks quite cool! > enjoy! > /larry liimatainen regards, Samium Gromoff