*BSD News Article 29748


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!asami
From: asami@cs.berkeley.edu (Satoshi ASAMI)
Newsgroups: comp.os.386bsd.questions
Subject: Re: yacc lex and *BSD how to get it working
Date: 18 Apr 94 06:09:00
Organization: CS Div. - EECS, University of California, Berkeley, CA 94720
Lines: 26
Message-ID: <ASAMI.94Apr18060900@forgery.cs.berkeley.edu>
References: <1994Apr14.144305.16368@news.uit.no> <2ors13INN6ph@bonnie.sax.de>
NNTP-Posting-Host: forgery.cs.berkeley.edu
In-reply-to: j@uriah.sax.de's message of 17 Apr 1994 19:35:31 +0200

In article <2ors13INN6ph@bonnie.sax.de> j@uriah.sax.de (J Wunsch) writes:

 * finns@cc.uit.no (Finn Stensvik) writes:
 * 
 * >lex get a parse-error when chewing on a file produced by yacc.
 * 
 * >The errormsg is:
 * >lex.l:90: parse error before '1'
 * 
 * What are the related code lines? If possible, try to look at the C code.

I already posted a followup to this question....mine was piewm, but
they should be mostly the same.

The problem is that in lex.l, there is a line:

yywrap() { return(1);}

but yywrap is defined as

#define yywrap() 1

(or something like that) elsewhere.  I just commented out that line,
maybe there is a better solution.

Satoshi