Re: Compiling Reverse Polish Calculator Example

2012-11-01 Thread Hans Aberg
On 1 Nov 2012, at 18:34, Akim Demaille wrote: > Hi Hans, > > Le 31 oct. 2012 à 15:47, Hans Aberg a écrit : > >> It is pointless in UTF-8, and accepting it encourages a number of other >> problems. >> https://en.wikipedia.org/wiki/Byte_order_mark > > You are right that Bison wants at least to b

Re: Compiling Reverse Polish Calculator Example

2012-11-01 Thread Hans Aberg
On 1 Nov 2012, at 18:34, Akim Demaille wrote: > Hi Hans, Hi Akim, > Le 31 oct. 2012 à 15:47, Hans Aberg a écrit : > >> It is pointless in UTF-8, and accepting it encourages a number of other >> problems. >> https://en.wikipedia.org/wiki/Byte_order_mark > > You are right that Bison wants at le

Re: Compiling Reverse Polish Calculator Example

2012-11-01 Thread Akim Demaille
Hi Hans, Le 31 oct. 2012 à 15:47, Hans Aberg a écrit : > It is pointless in UTF-8, and accepting it encourages a number of other > problems. > https://en.wikipedia.org/wiki/Byte_order_mark You are right that Bison wants at least to be able to read the ASCII part of the 8 bits, so that sort-of

Re: Compiling Reverse Polish Calculator Example

2012-11-01 Thread Akim Demaille
Le 1 nov. 2012 à 14:48, Paul Eggert a écrit : > On 10/31/2012 10:04 AM, Akim Demaille wrote: >> How about this? > > Thanks, I pushed that into gnulib, > with a minor tweak to the ChangeLog entry. Thanks! I installed the following patch in branch-2.6 (and a few uninteresting minor changes). co

Re: Compiling Reverse Polish Calculator Example

2012-11-01 Thread Paul Eggert
On 10/31/2012 10:04 AM, Akim Demaille wrote: > How about this? Thanks, I pushed that into gnulib, with a minor tweak to the ChangeLog entry. ___ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Re: Compiling Reverse Polish Calculator Example

2012-11-01 Thread Akim Demaille
Le 31 oct. 2012 à 18:04, Akim Demaille a écrit : > Le 31 oct. 2012 à 17:24, Paul Eggert a écrit : > >> I suppose there should be a quote_mem or something like that. > > How about this? > > (the context for gnulibers: > http://lists.gnu.org/archive/html/help-bison/2012-10/msg00017.html) > > co

Re: Compiling Reverse Polish Calculator Example

2012-10-31 Thread Akim Demaille
Le 31 oct. 2012 à 17:24, Paul Eggert a écrit : > On 10/31/2012 08:46 AM, Akim Demaille wrote: >> BTW, Paul, did you see my question about quotearg in this very thread? > > Sorry, no, I missed that. I suppose there should be > a quote_mem or something like that. How about this? (the context fo

Re: Compiling Reverse Polish Calculator Example

2012-10-31 Thread Paul Eggert
On 10/31/2012 08:46 AM, Akim Demaille wrote: > BTW, Paul, did you see my question about quotearg in this very thread? Sorry, no, I missed that. I suppose there should be a quote_mem or something like that. ___ help-bison@gnu.org https://lists.gnu.org/m

Re: Compiling Reverse Polish Calculator Example

2012-10-31 Thread Akim Demaille
Le 31 oct. 2012 à 16:25, Paul Eggert a écrit : > On 10/31/2012 01:32 AM, Akim Demaille wrote: >> I now also realize that maybe Bison should ignore these >> BOM bytes. Or even propagate them to the generated files? > > I guess it'd be OK to ignore them but I wouldn't propagate them, > as they're

Re: Compiling Reverse Polish Calculator Example

2012-10-31 Thread Paul Eggert
On 10/31/2012 01:32 AM, Akim Demaille wrote: > I now also realize that maybe Bison should ignore these > BOM bytes. Or even propagate them to the generated files? I guess it'd be OK to ignore them but I wouldn't propagate them, as they're trouble. While we're on the subject of UTF-8, is Bison re

Re: Compiling Reverse Polish Calculator Example

2012-10-31 Thread Hans Aberg
On 31 Oct 2012, at 09:32, Akim Demaille wrote: > Le 29 oct. 2012 à 18:22, Akim Demaille a écrit : > >> [Paul, this is about quotearg] >> >> Hi Marc, >> >> This message is not related directly to your complaint >> (Hans explained well your issue). This message is about >> Bison not issuing the

Re: Compiling Reverse Polish Calculator Example

2012-10-31 Thread Akim Demaille
Le 29 oct. 2012 à 18:22, Akim Demaille a écrit : > [Paul, this is about quotearg] > > Hi Marc, > > This message is not related directly to your complaint > (Hans explained well your issue). This message is about > Bison not issuing the right message. > > Le 26 oct. 2012 à 23:13, Marc Mendiola

Re: Compiling Reverse Polish Calculator Example

2012-10-29 Thread Akim Demaille
[Paul, this is about quotearg] Hi Marc, This message is not related directly to your complaint (Hans explained well your issue). This message is about Bison not issuing the right message. Le 26 oct. 2012 à 23:13, Marc Mendiola a écrit : > rpcalc.y:1.1: invalid character: `\377' > rpcalc.y:1.2:

Re: Compiling Reverse Polish Calculator Example

2012-10-28 Thread Quick Silver
This happens because you copied and pasted the text from the manual. You can prove that by typing out the lines mentioned in your error list. You may also try doing a find or replace on the characters mentioned. Graheme On 26 Oct 2012, at 22:13, Marc Mendiola wrote: To whom it may concern

Re: Compiling Reverse Polish Calculator Example

2012-10-26 Thread Hans Aberg
Don't forget to cc the list, so that others can follow the issue. On 26 Oct 2012, at 23:36, Marc Mendiola wrote: > Hans, > > Thank you! That took care of those first two errors. However, I am still > receiving the other errors. > > rpcalc.y:1.2: invalid character: `' > rpcalc.y:1.3: invalid

Re: Compiling Reverse Polish Calculator Example

2012-10-26 Thread Hans Aberg
On 26 Oct 2012, at 23:13, Marc Mendiola wrote: > However, when I try to generate the parser using "bison rpcalc.y," I receive > the following errors. > > rpcalc.y:1.1: invalid character: `\377' > rpcalc.y:1.2: invalid character: `\376' This may be a BOM added by the editor. Try removing it. H

Compiling Reverse Polish Calculator Example

2012-10-26 Thread Marc Mendiola
To whom it may concern, I am currently new to GNU Bison and thus, have only read the manual briefly. I am trying to compile a working example of a parser in order to help my understanding of the material. Therefore, I went through the rpcalc example provided online. I copied the code verbat