From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6596 invoked by alias); 7 Jan 2005 03:12:05 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5943 invoked from network); 7 Jan 2005 03:11:58 -0000 Received: from unknown (HELO mail.netspace.net.au) (203.10.110.76) by sourceware.org with SMTP; 7 Jan 2005 03:11:58 -0000 Received: from [192.168.1.11] (220-253-45-48.VIC.netspace.net.au [220.253.45.48]) by mail.netspace.net.au (Postfix) with ESMTP id 644DB10FC77 for ; Fri, 7 Jan 2005 14:11:56 +1100 (EST) Message-ID: <41DDFF0D.5040205@netspace.net.au> Date: Fri, 07 Jan 2005 03:12:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4 MIME-Version: 1.0 Cc: gdb@sources.redhat.com Subject: Re: GDB/MI Output Syntax References: <1093622671.2836.ezmlm@sources.redhat.com> <76E69B58-F852-11D8-8E70-000A958F4C44@apple.com> <412F87A4.nail3LU117EOV@mindspring.com> <20050105232657.GB27494@white> <01c4f3aa$Blat.v2.2.2$b4217d20@zahav.net.il> <20050106233136.GA29435@white> <4CE93165-C27F-4CF6-90B8-7632A7BD2672@apple.com> <20050107011211.GB29435@white> In-Reply-To: <20050107011211.GB29435@white> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-01/txt/msg00056.txt.bz2 Bob Rossi wrote: ... > If Tcl is like C (struct, enum's, union's) I could easily put the parse > tree declaration in some common file and generate both the C and the Tcl > data structures. This part could be done in just a few days if I could > get some guidance on how Tcl works. TCL really means "command line language". Everything in TCL is a command line eg: etc. You can nest commands so that one command can be expanded and executed so that its output supplies args for its parent, using [] brackets: [ ] ... TCL is all about string expansion of command lines. A very comprehensive book: Pactical Programming in Tcl and Tk. Another book that explains TCL and also Expect (probably of more immediate use): Exploring Expect. Expect also has a large man page. C and TCL is like comparing chalk and cheese. TCL is interpreted too.