From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] Lex and Yacc question From: C H Forsyth Date: Wed, 1 Mar 2006 15:42:28 +0000 In-Reply-To: <20060301153632.18339.qmail@web33804.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ivdqjulsklpsexawudfuukrdwj" Topicbox-Message-UUID: 075023d8-ead1-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-ivdqjulsklpsexawudfuukrdwj Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit /sys/src/cmd/cc/cc.y (you might need the Plan 9 yacc) the lexical analyser is hand written. /sys/src/cmd/cc/lex.c /sys/src/cmd/cc/mac.c (includes /sys/src/cmd/cc/macbody) for the built-in preprocessor in fact, lex.c includes the compiler main program and some other little functions, so the lexical analyser proper is smaller --upas-ivdqjulsklpsexawudfuukrdwj Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by doppio; Wed Mar 1 15:37:12 GMT 2006 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id BA46B5AF20 for ; Wed, 1 Mar 2006 10:37:09 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 6C7A15AEBB for <9fans@cse.psu.edu>; Wed, 1 Mar 2006 10:36:36 -0500 (EST) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18736-01-83 for <9fans@cse.psu.edu>; Wed, 1 Mar 2006 10:36:33 -0500 (EST) Received: from web33804.mail.mud.yahoo.com (web33804.mail.mud.yahoo.com [66.163.178.51]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 267FF5AEC3 for <9fans@cse.psu.edu>; Wed, 1 Mar 2006 10:36:32 -0500 (EST) Received: (qmail 18341 invoked by uid 60001); 1 Mar 2006 15:36:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bXRe885/qmj5UvncGtuj4tCz7uQ4DtQBX6femJsYUzU6oYJcl65K+bZhxuSVZzaSVtrpiVZb2fadbCgF41vD/LQ1rMtenqXzUVn8b7it42j2MRg4NYx+pFVJZgLKODxYNch0W4ATQuolDGriJ3BewOOnf4Bw3EzQM28/hs6rfJ4= ; Message-ID: <20060301153632.18339.qmail@web33804.mail.mud.yahoo.com> Received: from [12.111.55.66] by web33804.mail.mud.yahoo.com via HTTP; Wed, 01 Mar 2006 07:36:32 PST Date: Wed, 1 Mar 2006 07:36:32 -0800 (PST) From: Riza Dindir To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: by amavisd-new at cse.psu.edu Subject: [9fans] Lex and Yacc question X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+forsyth=vitanuova.com@cse.psu.edu Errors-To: 9fans-bounces+forsyth=vitanuova.com@cse.psu.edu Content-Transfer-Encoding: quoted-printable Hi All, I was wondering if there is a grammar definition for the Plan9 C compiler (lex and yacc/flex and bison)? Any documents for the compiler grammar, anywhere? rd __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 --upas-ivdqjulsklpsexawudfuukrdwj--