help-bison
[Top][All Lists]
Advanced

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

Re: Bison + Flex on C++ don't work


From: Uxio Prego
Subject: Re: Bison + Flex on C++ don't work
Date: Tue, 7 May 2019 20:24:14 +0200

Of course maybe consider missing the flex thing as well:

$ sudo grep -r yylex /usr/ 2>&1 | grep matches
[...]
Binary file /usr//local/opt/flex/lib/libfl.a matches
Binary file /usr//local/opt/flex/lib/libfl.dylib matches
Binary file /usr//local/opt/flex/lib/libfl.2.dylib matches
[...] 
$ _

Cheers,

> On 6 May 2019, at 14:23, uxio prego <address@hidden> wrote:
> 
> Maybe related?
> 
> /usr/local$ find . | grep -i bison | grep -i lib
> ./Cellar/bison/3.1/lib
> ./Cellar/bison/3.1/lib/liby.a
> [...]
> 
> I miss the dynamic version but
> 
> 🤷‍♀️
> 
> Cheers,
> 
> Sent from my iPhone
> 
>> On 6 May 2019, at 02:37, Joao Pedro Abreu De Souza <address@hidden> wrote:
>> 
>> Hi folks. My friend Nicholas and I are trying to make a compiler for a
>> simpler language(just expressions by now) with flex and bison using C++.
>> 
>> Using
>> https://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html
>> as a guide, we code the repository below, but when We try
>> 
>> bison -d parser.yy -o parser.cc
>> lex scanner.l
>> g++ lex.yy.cc parser.cc main.cc -o cppimp
>> 
>> 
>> Give us the error in the file
>> 
>> repository : https://github.com/nicholas-barcelos/Cppimp
>> 
>> We try to change headers of place, move definitions of class, but nothing
>> work. What are we making wrong? Thanks in advance
>> <log.txt>
>> _______________________________________________
>> address@hidden https://lists.gnu.org/mailman/listinfo/help-bison




reply via email to

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