help-bison
[Top][All Lists]
Advanced

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

Re: Label problems


From: ROLAND
Subject: Re: Label problems
Date: Thu, 1 Nov 2001 15:44:01 +0100

[Please keep cc to Help Bison]
--- Hans Aberg <address@hidden> wrote:
> You do not give much hints of what your problems
> are. Here, one might guess
> that you have successfully compiled the .l and .y
> files using Flex/Bison,
> then successfully compiled their output using a C
> compiler, and when you
> then run that program, reading a file with it, it
> somehow cannot recognize
> the full word you expect.
>
> Right?

Correct, I have compiled the .y and .l file using
Bison and Flex. Both programs don't complain. Then
when I get them through GCC, there are no problems
either. The problems occur when I try to get an input
file through the newly build executable. It only
happens with one of my files, but that's because it's
the only file which contains 'labels' longer than 7
chracters.


> If so, the problem is that the Flex generated lexer
> is not reading lexemes
> that same way as the one generated by lex, and you
> need to check the Flex
> settings and perhaps grammar and correct for that
> (unless there is a
> problem in the C code).

Well, I tried compiling on my SPARC in 4 ways. When I
used YACC/LEX there were no problems. The same result
came from YACC/FLEX. The errors occured in both the
BISON/LEX and BISON/FLEX combination.
If you still think, the problem is in FLEX, please
explain to me why, 'cause I think it's in BISON (I'm
pretty sure right now...).

> If this is not the problem, please supply more
> details of what the problem
> is (but not the whole batch, hoping somebody should
> do your work).

I'm still working on it myself, and I'm not yet sure
where the exact error occurs, so I can't send anything
yet. If I find the exact piece of code where things go
wrong, I'll be sure to post it.

ROLAND


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com





reply via email to

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