help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Errors trying bison example... :(


From: Tim Van Holder
Subject: Re: Errors trying bison example... :(
Date: 30 Oct 2002 15:02:34 +0100

On Wed, 2002-10-30 at 22:00, Karlheinz Toni wrote:
> bison test.y
> 
> test.y:6: unknown character: `\r'
> 
> test.y:6:    Skipping to next %
> 
> ' is invalid in %token

This suggests that bison is reading your (DOS) text
file (with CR LF line endings) in binary mode, and
choking on the CRs.  If you're running on a Unixy
system, try translating the input file to Unix text
(e.g. by dos2unix if available).  If you're on a
Windows machine running Cygwin, try mounting the
drive the input file is on in text mode.

-- 
Tim Van Holder <address@hidden>
Anubex





reply via email to

[Prev in Thread] Current Thread [Next in Thread]