[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison: Syntax error with german "umlaute"
From: |
Paul Eggert |
Subject: |
Re: Bison: Syntax error with german "umlaute" |
Date: |
Mon, 1 Jul 2002 01:58:31 -0700 (PDT) |
> From: Wolfgang Gabriel <address@hidden>
> Date: 27 Jun 2002 23:51:00 -0700
> using Bison V1.25 (under HP-UX) I always get a "Syntax error"
> (function YYERROR will be called) if the parsed source code contains
> german umlaute
Most likely you are on a host with signed char, and your umlauted
character code has a negative value after it is converted to type
'char'. When yylex returns a negative value, that is considered to be
end-of-input.
> How can I avoid this error?
yylex should return a negative value only on end-of-input.
Please try converting your German umlaut to 'unsigned char' instead.
Perhaps this issue should be documented in the Bison manual; it's a
bit obscure, I'm afraid.
- Re: Bison: Syntax error with german "umlaute",
Paul Eggert <=