From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel,gmane.comp.version-control.arch.user,gmane.lisp.guile.user Subject: Re: ITLA Date: 03 Mar 2004 11:22:38 +0000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <85d67uxji9.fsf@ossau.uklinux.net> References: <200402292232.51103.clinton@unknownlamer.org> <87r7wdma3d.fsf@alice.rotty.yi.org> <87n0707icl.fsf_-_@alice.rotty.yi.org> <200403011904.LAA20046@morrowfield.regexps.com> <87r7wc4bxm.fsf@alice.rotty.yi.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078424394 24871 80.91.224.253 (4 Mar 2004 18:19:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Mar 2004 18:19:54 +0000 (UTC) Cc: gnu-arch-users@gnu.org, ttn@glug.org, guile-user@gnu.org, guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 04 19:19:40 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AyxRb-0004Yt-00 for ; Thu, 04 Mar 2004 19:19:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyxQK-0005TJ-5R for guile-devel@m.gmane.org; Thu, 04 Mar 2004 13:18:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AyUa0-0002G7-GR for guile-devel@gnu.org; Wed, 03 Mar 2004 06:30:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AyUZ1-0001Et-8B for guile-devel@gnu.org; Wed, 03 Mar 2004 06:29:55 -0500 Original-Received: from [80.84.72.14] (helo=mail2.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyUSb-0007Wv-OX; Wed, 03 Mar 2004 06:22:45 -0500 Original-Received: from laruns.ossau.uklinux.net (unknown [213.78.87.142]) by mail2.uklinux.net (Postfix) with ESMTP id 43117409FCC; Wed, 3 Mar 2004 11:22:41 +0000 (UTC) Original-Received: by laruns.ossau.uklinux.net (Postfix, from userid 1002) id 0119277AA6; Wed, 3 Mar 2004 11:22:38 +0000 (GMT) Original-To: Andreas Rottmann Original-Lines: 42 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3478 gmane.comp.version-control.arch.user:22175 gmane.lisp.guile.user:2883 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3478 Andreas Rottmann writes: > Tom Lord writes: > > ,---- > | Each interactive command will be defined by an ordinary Scheme > | procedure supplemented with a _declaration_. The declaration lists: > | > | ~ the name of the command > | ~ a documentation string for the command > | ~ a list of options and parameters to the command, each > | specified by: > | > | + a parameter name > | > | + a "type declaration" (e.g., "string", or "new-archive-name", > | or "existing-archive-name", or "archive-name".) > | > | + a description of how it is parsed from options and > | arguments provided on command lines > | > | + a default value > | > | + an optional prompt string > | > | + an optional help string for the parameter > | > | ~ a "type declaration" for the output of the command > | I've already coded something roughly along these lines, from the point of view of providing infrastructure for command line driven applications (for example, the Guile debugger). This is in the modules (ossau interactive) and (ossau interactive XXX) in http://www.ossau.uklinux.net/guile/guile-interactive-0.7.tar.gz, and (ossau command-loop) may also be relevant. Anyone working on this might want to check if they can get some initial mileage out of my code. Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel