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

2019-05-08 Thread Akim Demaille
> Le 8 mai 2019 à 17:59, Akim Demaille a écrit : > >> #define YY_DECL \ >>yy::parser::symbol_type yyFlexLexer yylex(driver &drv) Of course that should have been >> #define YY_DECL \ >>yy::parser::symbol_type yyFlexLexer::yylex(driver &drv) ___

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

2019-05-08 Thread Akim Demaille
> Le 6 mai 2019 à 02:37, Joao Pedro Abreu De Souza a écrit > : > > 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++. Hi guys, You departed from the original example by using Flex's C++ output. It

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

2019-05-07 Thread Uxio Prego
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,

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

2019-05-06 Thread uxio prego
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 wrote: > > Hi folks. My friend Nicholas and I are t