From MAILER-DAEMON Mon Jan 02 19:10:04 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Rhrx6-0003ru-6A for mharc-help-bison@gnu.org; Mon, 02 Jan 2012 19:10:04 -0500 Received: from eggs.gnu.org ([140.186.70.92]:58262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhlzF-0000uD-6x for help-bison@gnu.org; Mon, 02 Jan 2012 12:47:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RhlzE-0007ce-8m for help-bison@gnu.org; Mon, 02 Jan 2012 12:47:53 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:59488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhlzD-0007c9-UC for help-bison@gnu.org; Mon, 02 Jan 2012 12:47:52 -0500 Received: by eekc41 with SMTP id c41so16704939eek.0 for ; Mon, 02 Jan 2012 09:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=IVDctLJ466yyUvxSpA0Oev0yiQD4zuHno5E2GwAc3SU=; b=BMSCMCRGA0l5mXzwtQqCLrawO5XCYd/6tunzPWDPSNExUUdUv8A9wAiY0e7lFwBiQU nMeWB7pIIQGR1u5denZeIwO+P1bRBY+1uDsNTVLfqxoc0/QzC85Fi15p7Qg59dlJv8zY U8DwXFGKqXmtXou+2ELoaf6W5FyzV5K2VUFtA= Received: by 10.14.95.140 with SMTP id p12mr19822333eef.105.1325526470501; Mon, 02 Jan 2012 09:47:50 -0800 (PST) Received: from [141.58.5.24] (mango.hlrs.de. [141.58.5.24]) by mx.google.com with ESMTPS id u53sm146315299eeu.6.2012.01.02.09.47.48 (version=SSLv3 cipher=OTHER); Mon, 02 Jan 2012 09:47:48 -0800 (PST) Message-ID: <4F01EDBF.7090505@googlemail.com> Date: Mon, 02 Jan 2012 18:47:43 +0100 From: Oliver Mangold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111120 Icedove/8.0 MIME-Version: 1.0 To: help-bison@gnu.org Subject: D parser template Content-Type: multipart/mixed; boundary="------------080408080005010603060204" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.41 X-Mailman-Approved-At: Mon, 02 Jan 2012 19:10:03 -0500 X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2012 17:47:54 -0000 This is a multi-part message in MIME format. --------------080408080005010603060204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi folks, I just wanted to say, I created a bison template for the D programming language (compatible with version 2). If there is interest I am willing to donate it for the project. It's quite fresh and I certainly forget to test some cases (nightmare to test all combinations of options, puh...), but for anyone who wants to try it, here it is. Best, Oliver --------------080408080005010603060204 Content-Type: application/x-gzip; name="bison_D_template.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bison_D_template.tar.gz" H4sIAJ/sAU8AA+w8/XPaSJb5NfwVfY4zljKAjfO1FccpkxjPeM+xXRjPrEvDsQIa0EVInFqy w6ayf/u997pb3wLs8c7V1g1ViZHU/b769fvqJ4aO8L3B8SDk84Vrh3z3yeN/9uDz9vVr+ffN q8xf9XnSar3d23v55k3r7dsne61Xr/f3nrDX/wJaCp9IhHbA2JPZYjS3valfNW7d83/TzzC/ /uPm/NUj48AFfvPqVcX6t96+fvkyt/6v91tvnrC9R6aj9PP/fP3Z7/g0XjRYOwr9ke9N8KJW e8aOmQtSiuwpZyJaLPwgZBM/YB9RzfD5J3+xDJzpLGTGJ5PtgyI09vdaLXYScM6u/El4Zwec nfiRN7ZDx/fq7NQbNXFmb+YItgj8aWDPGXyd4AyhZrxjSz9iI9tjAR87IgycYRRy5oTM9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C0+rjI8JETz/Wt+/1j 0GDBv1jmDoAxgNuaw+xxfJspJn3B9i6exbN4Fs/iWTyLZ/EsnsWzeBbP4lk8i2fxLJ7Fs3j+ 4Od/AaphkHkAyAAA --------------080408080005010603060204-- From MAILER-DAEMON Tue Jan 10 03:21:33 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RkWxZ-0001wV-O6 for mharc-help-bison@gnu.org; Tue, 10 Jan 2012 03:21:33 -0500 Received: from eggs.gnu.org ([140.186.70.92]:42086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkPj8-0006BY-29 for help-bison@gnu.org; Mon, 09 Jan 2012 19:38:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkPj7-0003UY-8B for help-bison@gnu.org; Mon, 09 Jan 2012 19:38:10 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:33602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkPj7-0003U0-3b for help-bison@gnu.org; Mon, 09 Jan 2012 19:38:09 -0500 Received: by werf1 with SMTP id f1so4052204wer.0 for ; Mon, 09 Jan 2012 16:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=zqFi5fzOEndLRBd2ZMAChw2c8Q1nf++rsWdVDbsvSdU=; b=FAG1d+gHlPQTSB1ZNdmKsg5N7AnjHU9NAFJX1qHJbd9Frcruq2yob/5qNLZlVeippy csXK6xWsiepS8+hY5/WHUJtUa4RALLPRkblOf9jF52zVg6mDHzCFiNcV9XOYonCnmWUX Hw9Me+bpyoxg8axx8HRiEwdKB8f563uhGuSqQ= MIME-Version: 1.0 Received: by 10.216.132.98 with SMTP id n76mr8729850wei.36.1326155887831; Mon, 09 Jan 2012 16:38:07 -0800 (PST) Received: by 10.216.50.15 with HTTP; Mon, 9 Jan 2012 16:38:07 -0800 (PST) Date: Mon, 9 Jan 2012 19:38:07 -0500 Message-ID: Subject: Parse Tree using Bison From: UJWAL POTLURI To: help-bison@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 X-Mailman-Approved-At: Tue, 10 Jan 2012 03:21:30 -0500 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 00:38:10 -0000 Hi, I am new to Bison. I am able to parse the grammar using Bison but I am unable to figure out how to generate the parse tree. I would be grateful if anyone could help me out in this. Regards, Ujwal From MAILER-DAEMON Tue Jan 10 03:21:34 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RkWxa-0001xn-1S for mharc-help-bison@gnu.org; Tue, 10 Jan 2012 03:21:34 -0500 Received: from eggs.gnu.org ([140.186.70.92]:41576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkPAL-0000fp-Fs for help-bison@gnu.org; Mon, 09 Jan 2012 19:02:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkPAK-00075f-3F for help-bison@gnu.org; Mon, 09 Jan 2012 19:02:13 -0500 Received: from auriga.rz.hft-stuttgart.de ([193.196.136.16]:26774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkPAJ-00075K-NH for help-bison@gnu.org; Mon, 09 Jan 2012 19:02:12 -0500 Received: from arctur.rz.hft-stuttgart.de (arctur.rz.hft-stuttgart.de [193.196.136.26]) by auriga.rz.hft-stuttgart.de (8.13.8/8.13.8) with ESMTP id q0A023Ps012774 for ; Tue, 10 Jan 2012 01:02:04 +0100 Received: from [192.168.178.21] (/62.158.153.181) by hft-stuttgart.de (server vdefault) with ESMTP ; Tue, 10 Jan 2012 01:02:03 +0100 From: Juergen Schumacher Subject: bison doesn't parse my include file Date: Tue, 10 Jan 2012 01:02:02 +0100 Message-Id: <5BE7BB41-602A-4863-B231-E3F9032B1CB2@hft-stuttgart.de> To: help-bison@gnu.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 193.196.136.16 X-Mailman-Approved-At: Tue, 10 Jan 2012 03:21:30 -0500 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 00:02:14 -0000 sorry for bothering anybody, i am trying to c++ parse an include file with flex 2.5.35 and bison 2.3 = on a mac os x snow leopard installation - everything without include = file works perfectly. my latest attempt was: I|i BEGIN(incl); [ \t]* [^ \t\n]+ { printf(yytext); printf("\n"); std::ifstream fin(yytext); yy_buffer_state* my_buffer_state =3D = yy_create_buffer(&fin, YY_BUF_SIZE); yypush_buffer_state(my_buffer_state); BEGIN(INITIAL); } i get the stream name correct, but receive an <> immediately - = instead of the parsed parameter values - although i can read the stream via lex()... am i stupid or do i miss some basic parser call...? any help would be highly appreciated. regards juergen =20 -- Dr. Juergen Schumacher Hochschule fuer Technik Stuttgart Forschungszentrum zafh.net Schellingstrasse 24 70174 Stuttgart Telefon: 0711.8926.2840 Telefax: 0711.8926.2986 Mobil: 0170.3445457 www.zafh.net From MAILER-DAEMON Tue Jan 10 03:52:12 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RkXRE-0007XT-QX for mharc-help-bison@gnu.org; Tue, 10 Jan 2012 03:52:12 -0500 Received: from eggs.gnu.org ([140.186.70.92]:38099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkXR7-0007WG-EX for help-bison@gnu.org; Tue, 10 Jan 2012 03:52:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkXR6-0007oF-J9 for help-bison@gnu.org; Tue, 10 Jan 2012 03:52:05 -0500 Received: from smtp-out21.han.skanova.net ([195.67.226.208]:49746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkXR6-0007o3-8O for help-bison@gnu.org; Tue, 10 Jan 2012 03:52:04 -0500 Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net (8.5.133) (authenticated as u26619196) id 4EC0B93A014C458B; Tue, 10 Jan 2012 09:52:02 +0100 Subject: Re: Parse Tree using Bison Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Hans Aberg In-Reply-To: Date: Tue, 10 Jan 2012 09:52:02 +0100 Content-Transfer-Encoding: 7bit Message-Id: <52683CF2-A450-4B7A-AA36-378ED201B5C5@telia.com> References: To: UJWAL POTLURI X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.67.226.208 Cc: help-bison@gnu.org X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 08:52:11 -0000 On 10 Jan 2012, at 01:38, UJWAL POTLURI wrote: > I am new to Bison. I am able to parse the grammar using Bison but I am > unable to figure out how to generate the parse tree. I would be grateful if > anyone could help me out in this. You'll have to build it in the grammar actions. Hans From MAILER-DAEMON Tue Jan 10 19:39:50 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RkmEI-0001JL-CA for mharc-help-bison@gnu.org; Tue, 10 Jan 2012 19:39:50 -0500 Received: from eggs.gnu.org ([140.186.70.92]:50080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkmEG-0001JF-6i for help-bison@gnu.org; Tue, 10 Jan 2012 19:39:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkmEE-0003rq-Qw for help-bison@gnu.org; Tue, 10 Jan 2012 19:39:48 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:59973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkmEE-0003rk-L8 for help-bison@gnu.org; Tue, 10 Jan 2012 19:39:46 -0500 Received: by werf1 with SMTP id f1so205773wer.0 for ; Tue, 10 Jan 2012 16:39:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kHnyU96Bz95red/mD6R3kWkKNiKfvXe7JLGTr1MfzPk=; b=ba1EV7UjB2TJAifhGJONUSyMULljo5TjXMgWp0asqj/cchDJUWNtO1Jr5vm7G4powE QlAuy1RAYpth0ISvEsdo0iLK+Ccl2beviPpvunLXD1JERkGSBHEwnVaDORiF4ythU5ba WDGUqb++5CskdJf1Sog58RA93YGp4TcBS2hl8= MIME-Version: 1.0 Received: by 10.180.19.42 with SMTP id b10mr7208778wie.13.1326242385063; Tue, 10 Jan 2012 16:39:45 -0800 (PST) Received: by 10.216.50.15 with HTTP; Tue, 10 Jan 2012 16:39:44 -0800 (PST) In-Reply-To: <52683CF2-A450-4B7A-AA36-378ED201B5C5@telia.com> References: <52683CF2-A450-4B7A-AA36-378ED201B5C5@telia.com> Date: Tue, 10 Jan 2012 19:39:44 -0500 Message-ID: Subject: Re: Parse Tree using Bison From: UJWAL POTLURI To: Hans Aberg X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: help-bison@gnu.org X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 00:39:49 -0000 Can you please show me an example of how to do. On Tue, Jan 10, 2012 at 3:52 AM, Hans Aberg wrote: > > On 10 Jan 2012, at 01:38, UJWAL POTLURI wrote: > > > I am new to Bison. I am able to parse the grammar using Bison but I > am > > unable to figure out how to generate the parse tree. I would be grateful > if > > anyone could help me out in this. > > You'll have to build it in the grammar actions. > > Hans > > > -- Ujwal Potluri, Masters student, Computer Science, University of Connecticut, Connecticut, USA. From MAILER-DAEMON Tue Jan 10 19:54:56 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RkmSu-00030c-32 for mharc-help-bison@gnu.org; Tue, 10 Jan 2012 19:54:56 -0500 Received: from eggs.gnu.org ([140.186.70.92]:52762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkmSq-00030Q-Qf for help-bison@gnu.org; Tue, 10 Jan 2012 19:54:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkmSn-0005tq-Fc for help-bison@gnu.org; Tue, 10 Jan 2012 19:54:52 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:44314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkmSn-0005tV-CQ for help-bison@gnu.org; Tue, 10 Jan 2012 19:54:49 -0500 Received: by vcge1 with SMTP id e1so164613vcg.0 for ; Tue, 10 Jan 2012 16:54:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ra6pJ4T58DMHf9gQiSw+GRZ0NNA35/RHHTX0fKpAnq8=; b=xfaYA9ju3WI2PJxRseXV8kJRPIXPzQH3/R+CUx1grCsPkEYGjL4dKv1DxAeNguybZL ulWstaC/2h/YYPju3ABTijPf5XTlQvKvowfoARtNOXgkYNwLm96fbTwuF2BTcAFT1KpC fz+MONpIlGX6Salf9uS42m1y/0K+nAIIk2Jsg= MIME-Version: 1.0 Received: by 10.52.35.148 with SMTP id h20mr10416308vdj.21.1326243288234; Tue, 10 Jan 2012 16:54:48 -0800 (PST) Sender: herron.philip@googlemail.com Received: by 10.52.74.97 with HTTP; Tue, 10 Jan 2012 16:54:48 -0800 (PST) In-Reply-To: References: <52683CF2-A450-4B7A-AA36-378ED201B5C5@telia.com> Date: Wed, 11 Jan 2012 00:54:48 +0000 X-Google-Sender-Auth: EfxDSLKVQ52C2J7WikDbI9hm5GI Message-ID: Subject: Re: Parse Tree using Bison From: Philip Herron To: UJWAL POTLURI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.220.169 Cc: help-bison@gnu.org, Hans Aberg X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 00:54:54 -0000 On 11 January 2012 00:39, UJWAL POTLURI wrote: > Can you please show me an example of how to do. > > On Tue, Jan 10, 2012 at 3:52 AM, Hans Aberg wrote: > >> >> On 10 Jan 2012, at 01:38, UJWAL POTLURI wrote: >> >> > =A0 =A0 I am new to Bison. I am able to parse the grammar using Bison = but I >> am >> > unable to figure out how to generate the parse tree. I would be gratef= ul >> if >> > anyone could help me out in this. >> >> You'll have to build it in the grammar actions. >> >> Hans >> >> >> > > > -- > Ujwal Potluri, > Masters student, > Computer Science, > University of Connecticut, > Connecticut, USA. > _______________________________________________ > help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison The bison manual has some good basic examples if i recall. But take the general idea of something like: x =3D 1 + 2; The DAG of this would be something like: =3D / \ x + / \ 1 2 So you would have the grammar: expr =3D identifier '=3D' expr | expr '+' expr ... | primary So you could simply have the structure: struct tree { type T; union { int x; char * s struct tree * t; } opa; union { int x; ..... }; }; And you parse each thing in a simple way. Read on here http://www.gnu.org/software/bison/manual/html_node/Infix-Calc.html#Infix-Ca= lc or read the dragon book and the Lex and Yacc o'reilly book is good. Just make it in a way that makes things easy for you just think about how the parser parsers things and you should get the idea. --Phil From MAILER-DAEMON Wed Jan 11 04:49:02 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Rkunm-0003lw-Lg for mharc-help-bison@gnu.org; Wed, 11 Jan 2012 04:49:02 -0500 Received: from eggs.gnu.org ([140.186.70.92]:40212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkune-0003is-GB for help-bison@gnu.org; Wed, 11 Jan 2012 04:49:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rkund-0005IT-AL for help-bison@gnu.org; Wed, 11 Jan 2012 04:48:54 -0500 Received: from smtp-out21.han.skanova.net ([195.67.226.208]:48507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkunc-0005GQ-Lm for help-bison@gnu.org; Wed, 11 Jan 2012 04:48:52 -0500 Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net (8.5.133) (authenticated as u26619196) id 4EC0B93A01542AAF; Wed, 11 Jan 2012 10:48:32 +0100 Subject: Re: Parse Tree using Bison Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Hans Aberg In-Reply-To: Date: Wed, 11 Jan 2012 10:48:34 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <188D4F7D-CA2F-45CE-9B73-3928BF5A0D83@telia.com> References: <52683CF2-A450-4B7A-AA36-378ED201B5C5@telia.com> To: Philip Herron X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.67.226.208 Cc: help-bison@gnu.org, UJWAL POTLURI X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 09:49:01 -0000 On 11 Jan 2012, at 01:54, Philip Herron wrote: > The bison manual has some good basic examples if i recall. ... > Read on here > = http://www.gnu.org/software/bison/manual/html_node/Infix-Calc.html#Infix-C= alc The C++ example is good, too. It shows how to generate error messages. = http://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-= Example.html Hans From MAILER-DAEMON Wed Jan 11 09:43:40 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RkzOu-0007lR-4I for mharc-help-bison@gnu.org; Wed, 11 Jan 2012 09:43:40 -0500 Received: from eggs.gnu.org ([140.186.70.92]:41792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkzOo-0007lI-UQ for help-bison@gnu.org; Wed, 11 Jan 2012 09:43:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkzOo-0001me-1r for help-bison@gnu.org; Wed, 11 Jan 2012 09:43:34 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:58770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkzOn-0001mX-Tp for help-bison@gnu.org; Wed, 11 Jan 2012 09:43:34 -0500 Received: by wics10 with SMTP id s10so590279wic.0 for ; Wed, 11 Jan 2012 06:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=jPYgtYGJsBdwQryuptvwkBqygul/mbJZ82SrIFMY51s=; b=e49SKRwQmQFITuHXL+ULZaVDGqvwXI3bwfFXumxXKcfGYMH5Ws0G9roaXe8tk027yP 38q2+qs9ykBulylY/Wq3vfeifARX0ufPZk9m91HltAY9xath4MuhtkVEWOfVY0me0TQa WdlY0JdJrnJIoGQCJion0T+xgjGu0b2rOfsG8= Received: by 10.180.24.198 with SMTP id w6mr24490967wif.19.1326293012878; Wed, 11 Jan 2012 06:43:32 -0800 (PST) Received: from [192.168.0.14] (mna75-4-82-225-76-247.fbx.proxad.net. [82.225.76.247]) by mx.google.com with ESMTPS id ba4sm3012707wib.5.2012.01.11.06.43.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Jan 2012 06:43:31 -0800 (PST) Subject: Re: bison doesn't parse my include file Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Akim Demaille In-Reply-To: <5BE7BB41-602A-4863-B231-E3F9032B1CB2@hft-stuttgart.de> Date: Wed, 11 Jan 2012 15:43:31 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <0ED9EB70-A69A-4D1B-BFDB-4EA347C8B00C@lrde.epita.fr> References: <5BE7BB41-602A-4863-B231-E3F9032B1CB2@hft-stuttgart.de> To: Juergen Schumacher X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.169 Cc: help-bison@gnu.org X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 14:43:39 -0000 Le 10 janv. 2012 =E0 01:02, Juergen Schumacher a =E9crit : > sorry for bothering anybody, Hi Juergen, You're not bothering anybody :) > i am trying to c++ parse an include file with flex 2.5.35 and bison = 2.3 on a mac os x snow leopard installation - everything without include = file works perfectly. I would strongly recommend upgrading Bison, the current release is 2.5. > my latest attempt was: >=20 > I|i BEGIN(incl); >=20 > [ \t]* > [^ \t\n]+ { > printf(yytext); > printf("\n"); >=20 > std::ifstream fin(yytext); > yy_buffer_state* my_buffer_state =3D = yy_create_buffer(&fin, YY_BUF_SIZE); > yypush_buffer_state(my_buffer_state); > BEGIN(INITIAL); > } >=20 > i get the stream name correct, but receive an <> immediately - = instead of the parsed parameter values - > although i can read the stream via lex()... >=20 > am i stupid or do i miss some basic parser call...? >=20 > any help would be highly appreciated. As you may have noticed, there is nothing related to Bison in your question: that's only about scanner issues. It looks like a bad idea to me to use a local variable "fin" in a scanner action, since you want the stream to survive the handling of this pattern. You could just stick to plain old fopen, even if you are actually compiling the scanner in C++, and reuse yyin. Just like in Flex' doc.= From MAILER-DAEMON Wed Jan 11 10:23:58 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Rl01u-00075I-Po for mharc-help-bison@gnu.org; Wed, 11 Jan 2012 10:23:58 -0500 Received: from eggs.gnu.org ([140.186.70.92]:57054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl01o-00073C-Mm for help-bison@gnu.org; Wed, 11 Jan 2012 10:23:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl01h-0001Xy-Sc for help-bison@gnu.org; Wed, 11 Jan 2012 10:23:52 -0500 Received: from auriga.rz.hft-stuttgart.de ([193.196.136.16]:50873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl01h-0001V0-Fi for help-bison@gnu.org; Wed, 11 Jan 2012 10:23:45 -0500 Received: from arctur.rz.hft-stuttgart.de (arctur.rz.hft-stuttgart.de [193.196.136.26]) by auriga.rz.hft-stuttgart.de (8.13.8/8.13.8) with ESMTP id q0BFNbw8019070; Wed, 11 Jan 2012 16:23:37 +0100 Received: from wlan182.vl888.hft-stuttgart.de (/193.197.201.182) by hft-stuttgart.de (server vdefault) with ESMTP ; Wed, 11 Jan 2012 16:23:37 +0100 Subject: Re: bison doesn't parse my include file Mime-Version: 1.0 (Apple Message framework v1084) From: Juergen Schumacher In-Reply-To: <0ED9EB70-A69A-4D1B-BFDB-4EA347C8B00C@lrde.epita.fr> Date: Wed, 11 Jan 2012 16:23:36 +0100 Message-Id: <404BFFBA-69C5-4002-8CEA-96CEE61E21B2@hft-stuttgart.de> References: <5BE7BB41-602A-4863-B231-E3F9032B1CB2@hft-stuttgart.de> <0ED9EB70-A69A-4D1B-BFDB-4EA347C8B00C@lrde.epita.fr> To: Akim Demaille X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 193.196.136.16 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: help-bison@gnu.org X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 15:23:57 -0000 dear akim, this was the decisive hint: It looks like a bad idea to me to use a local variable "fin" in a scanner action, since you want the stream to survive the handling of this pattern. thank you 1000000000000 times. regards juergen Am 11.01.2012 um 15:43 schrieb Akim Demaille: >=20 > Le 10 janv. 2012 =E0 01:02, Juergen Schumacher a =E9crit : >=20 >> sorry for bothering anybody, >=20 > Hi Juergen, >=20 > You're not bothering anybody :) >=20 >> i am trying to c++ parse an include file with flex 2.5.35 and bison = 2.3 on a mac os x snow leopard installation - everything without include = file works perfectly. >=20 > I would strongly recommend upgrading Bison, the current release is = 2.5. >=20 >> my latest attempt was: >>=20 >> I|i BEGIN(incl); >>=20 >> [ \t]* >> [^ \t\n]+ { >> printf(yytext); >> printf("\n"); >>=20 >> std::ifstream fin(yytext); >> yy_buffer_state* my_buffer_state =3D = yy_create_buffer(&fin, YY_BUF_SIZE); >> yypush_buffer_state(my_buffer_state); >> BEGIN(INITIAL); >> } >>=20 >> i get the stream name correct, but receive an <> immediately - = instead of the parsed parameter values - >> although i can read the stream via lex()... >>=20 >> am i stupid or do i miss some basic parser call...? >>=20 >> any help would be highly appreciated. >=20 > As you may have noticed, there is nothing related to Bison in your > question: that's only about scanner issues. >=20 > It looks like a bad idea to me to use a local variable "fin" in > a scanner action, since you want the stream to survive the > handling of this pattern. >=20 > You could just stick to plain old fopen, even if you are > actually compiling the scanner in C++, and reuse yyin. Just like > in Flex' doc. -- Dr. Juergen Schumacher Hochschule fuer Technik Stuttgart Forschungszentrum zafh.net Schellingstrasse 24 70174 Stuttgart Telefon: 0711.8926.2840 Telefax: 0711.8926.2986 Mobil: 0170.3445457 www.zafh.net From MAILER-DAEMON Fri Jan 13 14:44:17 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Rln2v-0004Nk-3u for mharc-help-bison@gnu.org; Fri, 13 Jan 2012 14:44:17 -0500 Received: from eggs.gnu.org ([140.186.70.92]:48180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlif7-0004HT-I5 for help-bison@gnu.org; Fri, 13 Jan 2012 10:03:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rlif2-0000vP-5G for help-bison@gnu.org; Fri, 13 Jan 2012 10:03:25 -0500 Received: from mail-qw0-f48.google.com ([209.85.216.48]:56494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlif2-0000vJ-1H for help-bison@gnu.org; Fri, 13 Jan 2012 10:03:20 -0500 Received: by qadz30 with SMTP id z30so1109504qad.0 for ; Fri, 13 Jan 2012 07:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=nEhYsC1a/GFF+629IdsxHlcbh91yzfN9rXhwvPf7XCw=; b=L0ieE8KGpQ7lUU09OR8aEmaBlvYcyxmv4nUj8V9krmZ9mOZZiTgH6LDKH3tJ8Rq1Ni Np0DBIo5bedwC8ZadHDJ/GETGFKlE58yp+FrMiinDxtHYiFMw+0a96rXWgv3kwJXLHP7 CMky+8JCLeweAtGQIQaBLfDgUucF+bJnlymJk= MIME-Version: 1.0 Received: by 10.224.175.2 with SMTP id v2mr2094561qaz.69.1326466999343; Fri, 13 Jan 2012 07:03:19 -0800 (PST) Received: by 10.229.39.68 with HTTP; Fri, 13 Jan 2012 07:03:19 -0800 (PST) Date: Fri, 13 Jan 2012 16:03:19 +0100 Message-ID: Subject: Includes From: Csaba Raduly To: help-bison@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.216.48 X-Mailman-Approved-At: Fri, 13 Jan 2012 14:44:15 -0500 X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 15:03:26 -0000 Hi, Bison 2.3 used to write the prologue into the definitions file (the header) Bison 2.4 seems to have changed this and now writes the prologue into the parser implementation file. This has created a problem for me because the %union contains pointers to various user-defined types, but the #includes containing their definitions are no longer written into the bison-generated header file. Manually updating the list of includes in every file that uses the bison-generated header is a pain. %code appears to provide the needed flexibility, but of course it's not recognized by bison 2.3 and I need my code to be compatible with both 2.3 and 2.4.x Is this (i.e. putting #includes into the generated header) possible? Csaba Please CC: me because I'm not subscribed to the list. -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds From MAILER-DAEMON Fri Jan 13 15:18:24 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RlnZw-000804-F5 for mharc-help-bison@gnu.org; Fri, 13 Jan 2012 15:18:24 -0500 Received: from eggs.gnu.org ([140.186.70.92]:41156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlnZu-0007yY-7I for help-bison@gnu.org; Fri, 13 Jan 2012 15:18:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlnZt-0000vU-3T for help-bison@gnu.org; Fri, 13 Jan 2012 15:18:22 -0500 Received: from smtp-out12.han.skanova.net ([195.67.226.212]:36725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlnZs-0000v9-Pj for help-bison@gnu.org; Fri, 13 Jan 2012 15:18:21 -0500 Received: from [10.0.1.2] (217.210.127.13) by smtp-out12.han.skanova.net (8.5.133) (authenticated as u26619196) id 4EFC380E003A30A4; Fri, 13 Jan 2012 21:18:18 +0100 Subject: Re: Includes Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Hans Aberg In-Reply-To: Date: Fri, 13 Jan 2012 21:18:18 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <202515AD-E0C0-41D1-8159-171B8519A641@telia.com> References: To: Csaba Raduly X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.67.226.212 Cc: help-bison@gnu.org X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 20:18:23 -0000 On 13 Jan 2012, at 16:03, Csaba Raduly wrote: > Bison 2.3 used to write the prologue into the definitions file (the = header) >=20 > Bison 2.4 seems to have changed this and now writes the prologue into > the parser implementation file. This has created a problem for me > because the %union contains pointers to various user-defined types, > but the #includes containing their definitions are no longer written > into the bison-generated header file. Manually updating the list of > includes in every file that uses the bison-generated header is a pain. >=20 > %code appears to provide the needed flexibility, but of course it's > not recognized by bison 2.3 and I need my code to be compatible with > both 2.3 and 2.4.x The current version is 2.5. The idea is to use the %code directives in = later versions. It is normal in distributions to include the Bison = generated files, so that only those that want to tweak the grammar file = would need Bison. Hans From MAILER-DAEMON Sat Jan 14 05:34:34 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Rm0wU-0001uK-P2 for mharc-help-bison@gnu.org; Sat, 14 Jan 2012 05:34:34 -0500 Received: from eggs.gnu.org ([140.186.70.92]:37573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm0wS-0001uD-CH for Help-bison@gnu.org; Sat, 14 Jan 2012 05:34:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rm0wR-0005Sd-74 for Help-bison@gnu.org; Sat, 14 Jan 2012 05:34:32 -0500 Received: from smtp202.alice.it ([82.57.200.98]:46981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm0wQ-0005SP-PE for Help-bison@gnu.org; Sat, 14 Jan 2012 05:34:31 -0500 Received: from [192.168.1.161] (87.15.62.55) by smtp202.alice.it (8.6.023.02) (authenticated as lucamarzolla) id 4ECA5CC201D3C75B; Sat, 14 Jan 2012 11:28:33 +0100 Message-ID: <4F1158D3.40007@tin.it> Date: Sat, 14 Jan 2012 11:28:35 +0100 From: Luca User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Help-bison@gnu.org Subject: Re: Parse Tree using Bison References: <52683CF2-A450-4B7A-AA36-378ED201B5C5@telia.com> <188D4F7D-CA2F-45CE-9B73-3928BF5A0D83@telia.com> In-Reply-To: <188D4F7D-CA2F-45CE-9B73-3928BF5A0D83@telia.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.98 Cc: UJWAL POTLURI X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 10:34:33 -0000 Il 11/01/2012 10.48, Hans Aberg ha scritto: > On 11 Jan 2012, at 01:54, Philip Herron wrote: > >> The bison manual has some good basic examples if i recall. > ... >> Read on here >> http://www.gnu.org/software/bison/manual/html_node/Infix-Calc.html#Infix-Calc > The C++ example is good, too. It shows how to generate error messages. > http://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html > > Hans > > > > _______________________________________________ > help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison > Also read on here: http://epaperpress.com/lexandyacc/download/LexAndYaccTutorial.pdf it is about yacc, but the tutorial is very good and also valid using Bison. Luca From MAILER-DAEMON Sat Jan 14 08:50:39 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Rm40F-00066q-Jn for mharc-help-bison@gnu.org; Sat, 14 Jan 2012 08:50:39 -0500 Received: from eggs.gnu.org ([140.186.70.92]:51737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm40C-00065E-MK for Help-bison@gnu.org; Sat, 14 Jan 2012 08:50:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rm40B-0005KM-9k for Help-bison@gnu.org; Sat, 14 Jan 2012 08:50:36 -0500 Received: from smtp-out21.han.skanova.net ([195.67.226.208]:55632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm40A-0005KI-VT for Help-bison@gnu.org; Sat, 14 Jan 2012 08:50:35 -0500 Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net (8.5.133) (authenticated as u26619196) id 4EC0B93A01688C7F; Sat, 14 Jan 2012 14:50:33 +0100 Subject: Re: Parse Tree using Bison Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Hans Aberg In-Reply-To: <4F1158D3.40007@tin.it> Date: Sat, 14 Jan 2012 14:50:31 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5E3EB8CC-C9B4-465B-9448-85E524B2904F@telia.com> References: <52683CF2-A450-4B7A-AA36-378ED201B5C5@telia.com> <188D4F7D-CA2F-45CE-9B73-3928BF5A0D83@telia.com> <4F1158D3.40007@tin.it> To: Luca X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.67.226.208 Cc: Help-bison@gnu.org, UJWAL POTLURI X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 13:50:37 -0000 On 14 Jan 2012, at 11:28, Luca wrote: >>> The bison manual has some good basic examples if i recall. >> ... >>> Read on here >>> = http://www.gnu.org/software/bison/manual/html_node/Infix-Calc.html#Infix-C= alc >> The C++ example is good, too. It shows how to generate error = messages. >> = http://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-= Example.html >>=20 > Also read on here: > http://epaperpress.com/lexandyacc/download/LexAndYaccTutorial.pdf > it is about yacc, but the tutorial is very good and also valid using = Bison. This calculator example is good, because it shows how to do control flow = ('while' and 'if then else'), lacking in the Bison manual examples, but = from time to time asked here. Also, it computes the AST (abstract syntax = tree) rather than the parse tree, which is what one normally would be = interested in in applications. Hans From MAILER-DAEMON Sun Jan 15 04:29:59 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RmMPX-0000ui-Oi for mharc-help-bison@gnu.org; Sun, 15 Jan 2012 04:29:59 -0500 Received: from eggs.gnu.org ([140.186.70.92]:49021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmMPV-0000uC-7b for help-bison@gnu.org; Sun, 15 Jan 2012 04:29:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmMPU-0003wf-4N for help-bison@gnu.org; Sun, 15 Jan 2012 04:29:57 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:39991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmMPT-0003wZ-RN for help-bison@gnu.org; Sun, 15 Jan 2012 04:29:56 -0500 Received: by wera13 with SMTP id a13so1705389wer.0 for ; Sun, 15 Jan 2012 01:29:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=Rq6vIMLb2aIUiCp14Y9uwLR3ATaPqkJeJyu5/CA0cP8=; b=Ae8MKrOBvAw1ui+9uFFY/RgbqsyWD5Wm4gf5YjKJFZNs4exDsxw1p41k4lcwWTBbef zdBTSBBOcEt4pCZo+S+AFtTWcfHvgpUTDX3+cb4vGv418l9VWVpXsLi7hLRAsA1JSSI/ apaOEDJC6vfb2+1j4Sbw6LrqPFvCzO9CGQNJc= Received: by 10.216.134.83 with SMTP id r61mr2272123wei.24.1326619794963; Sun, 15 Jan 2012 01:29:54 -0800 (PST) Received: from [192.168.0.14] (mna75-4-82-225-76-247.fbx.proxad.net. [82.225.76.247]) by mx.google.com with ESMTPS id eb2sm8651508wib.0.2012.01.15.01.29.53 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 Jan 2012 01:29:54 -0800 (PST) Subject: Re: Includes Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=windows-1252 From: Akim Demaille In-Reply-To: Date: Sun, 15 Jan 2012 10:29:53 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Csaba Raduly X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 Cc: help-bison@gnu.org X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2012 09:29:58 -0000 Le 13 janv. 2012 =E0 16:03, Csaba Raduly a =E9crit : > Hi, Hi Csaba, > Bison 2.3 used to write the prologue into the definitions file (the = header) >=20 > Bison 2.4 seems to have changed this and now writes the prologue into > the parser implementation file. This has created a problem for me > because the %union contains pointers to various user-defined types, > but the #includes containing their definitions are no longer written > into the bison-generated header file. Manually updating the list of > includes in every file that uses the bison-generated header is a pain. >=20 > %code appears to provide the needed flexibility, but of course it's > not recognized by bison 2.3 and I need my code to be compatible with > both 2.3 and 2.4.x >=20 > Is this (i.e. putting #includes into the generated header) possible? This area was really messy, and as Hans pointed out, %code is really the safest way to go. Is there some reason that prevents you from deploying Bison 2.5 instead? If you really want to stick to old versions, please be aware that %{=85%} sections before %union are published in the header, contrary %{=85%} after %union. IIRC=85 But really, %code is safer and much clearer.= From MAILER-DAEMON Sun Jan 15 16:20:26 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RmXV4-0003jz-4Y for mharc-help-bison@gnu.org; Sun, 15 Jan 2012 16:20:26 -0500 Received: from eggs.gnu.org ([140.186.70.92]:57928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmXV1-0003j4-Pq for help-bison@gnu.org; Sun, 15 Jan 2012 16:20:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmXV0-0000oA-OF for help-bison@gnu.org; Sun, 15 Jan 2012 16:20:23 -0500 Received: from mail-qw0-f41.google.com ([209.85.216.41]:44224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmXV0-0000o4-LQ for help-bison@gnu.org; Sun, 15 Jan 2012 16:20:22 -0500 Received: by qaea16 with SMTP id a16so321511qae.0 for ; Sun, 15 Jan 2012 13:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=GCWkzMihOrSWW06yoFUarafFFtqkqvUEvxSLLAXi13w=; b=rZ4EGKVzAGAn2fG5I6kaN0ZAnR56AM6rDzPr+qTzx5wkpy7Rnw2w7HCXKLf/W7bkno kdb5SnLHSpuA3w0Y7e6/ljMKxlRUSzWBv5DrriBBUdRUy+scqdT+iRBoyBmwfgOkk6bo rACZa/b68GTUYoNnR8mf/swvl7jjWuSye2yVw= MIME-Version: 1.0 Received: by 10.224.186.130 with SMTP id cs2mr11275637qab.82.1326662421962; Sun, 15 Jan 2012 13:20:21 -0800 (PST) Received: by 10.229.39.68 with HTTP; Sun, 15 Jan 2012 13:20:21 -0800 (PST) In-Reply-To: References: Date: Sun, 15 Jan 2012 22:20:21 +0100 Message-ID: Subject: Re: Includes From: Csaba Raduly To: help-bison@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.216.41 X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2012 21:20:24 -0000 On Sun, Jan 15, 2012 at 10:29 AM, Akim Demaille w= rote: > > Le 13 janv. 2012 =E0 16:03, Csaba Raduly a =E9crit : >> Bison 2.3 used to write the prologue into the definitions file (the head= er) >> >> Bison 2.4 seems to have changed this and now writes the prologue into >> the parser implementation file. This has created a problem for me >> because the %union contains pointers to various user-defined types, >> but the #includes containing their definitions are no longer written >> into the bison-generated header file. Manually updating the list of >> includes in every file that uses the bison-generated header is a pain. >> >> %code appears to provide the needed flexibility, but of course it's >> not recognized by bison 2.3 and I need my code to be compatible with >> both 2.3 and 2.4.x >> >> Is this (i.e. putting #includes into the generated header) possible? > > This area was really messy, and as Hans pointed out, %code is really > the safest way to go. =A0Is there some reason that prevents you from > deploying Bison 2.5 instead? The thing is, it's a corporate software built on corporate machines (Ubuntu 10, SLES 11) which have either 2.3 or 2.4 installed. I'll try to lobby my colleagues to ditch 2.3 :) Csaba Please CC me, I'm not on the list. --=20 GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torv= alds "People disagree with me. I just ignore them." -- Linus Torvalds From MAILER-DAEMON Thu Jan 19 03:52:13 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RnnjB-0004lW-K2 for mharc-help-bison@gnu.org; Thu, 19 Jan 2012 03:52:13 -0500 Received: from eggs.gnu.org ([140.186.70.92]:46672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rnnj4-0004jx-FR for help-bison@gnu.org; Thu, 19 Jan 2012 03:52:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rnnj0-0008Gv-Dr for help-bison@gnu.org; Thu, 19 Jan 2012 03:52:06 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:63248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rnnj0-0008Gn-9W for help-bison@gnu.org; Thu, 19 Jan 2012 03:52:02 -0500 Received: by werl4 with SMTP id l4so3859701wer.0 for ; Thu, 19 Jan 2012 00:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=OawyQfC34R6Ccn9ebjkrMSQr8QMKbSCPixmL2EmTxuw=; b=gyQOx754awoO6WKaCzdQJFAmD2VGk8w+7CINMRF465Y1Rj+nzXPNY61nP2VMWrZHsQ gQNLbGwj7yCrpuz+iCKgI2XtaWkbg2Up9P/bXPpGsmPs6rAnpZ4RkbpnSPZIM+ZnDjs2 0Qmi+TQayIuM+CZQgu9fQunC8JfApxKi5HwQA= Received: by 10.216.131.153 with SMTP id m25mr10801060wei.9.1326963121399; Thu, 19 Jan 2012 00:52:01 -0800 (PST) Received: from [192.168.0.14] (mna75-4-82-225-76-247.fbx.proxad.net. [82.225.76.247]) by mx.google.com with ESMTPS id gy6sm26844400wib.11.2012.01.19.00.51.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Jan 2012 00:51:59 -0800 (PST) Subject: Re: Includes Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Akim Demaille In-Reply-To: Date: Thu, 19 Jan 2012 09:51:58 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <65FE3E39-EE0C-41B2-9DE2-B22D51DBB831@lrde.epita.fr> References: To: Csaba Raduly X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 Cc: help-bison@gnu.org X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2012 08:52:12 -0000 Le 15 janv. 2012 =E0 22:20, Csaba Raduly a =E9crit : > The thing is, it's a corporate software built on corporate machines > (Ubuntu 10, SLES 11) which have either 2.3 or 2.4 installed. > I'll try to lobby my colleagues to ditch 2.3 :) I don't know your environment, but maybe not everybody needs to run Bison. So you could have some %require just to be on the safe side, and be sure to include your generated files in your repository/work environment. That way, those who really need to edit the grammar file have more freedom, without pushing too much on the others. That's what Bison itself does (and GCC, and Autoconf, and all these tools that "bootstrap themselves", or more generally put more requirements on the environment of those who develop them than on people who just compile them). From MAILER-DAEMON Wed Jan 25 03:26:19 2012 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RpyBP-0001Dq-OR for mharc-help-bison@gnu.org; Wed, 25 Jan 2012 03:26:19 -0500 Received: from eggs.gnu.org ([140.186.70.92]:37075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpyBI-0001Aj-AL for help-bison@gnu.org; Wed, 25 Jan 2012 03:26:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpyBB-0001a6-PA for help-bison@gnu.org; Wed, 25 Jan 2012 03:26:12 -0500 Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:43644 helo=kualalumpur.lrde.epita.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpyBB-0001Y1-KP for help-bison@gnu.org; Wed, 25 Jan 2012 03:26:05 -0500 Received: from [192.168.105.37] by kualalumpur.lrde.epita.fr with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1RpyAe-00064b-UZ; Wed, 25 Jan 2012 09:25:32 +0100 Subject: Re: seeking help re. undefined reference to `rpl_fprintf' in yyerror Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Akim Demaille In-Reply-To: <4EB23889.9020209@gmail.com> Date: Wed, 25 Jan 2012 09:25:32 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4EB23889.9020209@gmail.com> To: thiru ramakrishnan X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 163.5.55.1 Cc: help-bison@gnu.org X-BeenThere: help-bison@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Bison parser generator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2012 08:26:18 -0000 Le 3 nov. 2011 =E0 07:45, thiru ramakrishnan a =E9crit : > Hello, Hi Thiru, > I just started using Bison 2.5 (on Ubuntu 9.04 - the Jaunty = Jackalope). >=20 > I get the error referred to above. I've looked in help-bison Archives = and also searched on the Web for rpl_fprintf but don't find any info. >=20 > Here is the relevant portion of the gcc output: >=20 > -------- > gcc -DYYDEBUG=3D1 -c -o lex.yy.o lex.yy.c > gcc -DYYDEBUG=3D1 -o try try.tab.o lex.yy.o -L/usr/local/bison/lib = -L/usr/local/flex/lib -ly -lfl -lm > /usr/local/bison/lib/liby.a(yyerror.o): In function `yyerror': > /home/ramki/bison-2.5/lib/yyerror.c:27: undefined reference to = `rpl_fprintf' > collect2: ld returned 1 exit status > -------- >=20 > Any idea which library would have this binary? I'm sorry it took me so long to answer. I expect that you had found a means to work around this issue (for the records, the proper way to handle this is... _not_ to use liby, but to provide your own yyerror and main). Still, Jim Meyering just fixed this issue, see the following message. http://lists.gnu.org/archive/html/bug-bison/2012-01/msg00086.html This will be part of future releases of Bison. Cheers, Akim