Questions tagged [flex++]

a lexical scanner for C++ which is included as a part of the flex package.

Flex++ is a lexical scanner for C++ which is included as a part of the flex package. It is frequently used with the free Bison parser generator. flex++ is not part of the GNU Project.

See also:

8 questions
7
votes
2 answers

Flex++ bad character error and more. new to flex

we are just getting started using flex to build a lexer for a project, but we cant figure out how to get it to work. I copy the example code given in tutorials and try to run flex++ with the tut file as its argument however I just receive an error…
ElFik
  • 897
  • 2
  • 13
  • 31
5
votes
1 answer

Common difficulty with Flex++

Note: Someone with over 1500 rep.. please add flex++ and bison++ as tags :). Seems like people all over the Internet have been getting the following errors with Flex++: scanner.l:1: bad character: % scanner.l:1: unknown error processing section…
ale
  • 11,636
  • 27
  • 92
  • 149
2
votes
1 answer

flex isn't generating the yyFlexLexer.h header

I've coded a couple of parsers before using flex to create the lexer, but this time I wanted flex to generate a Lexer Class instead of the classic C file, i.e. I wanted flex to generate a C++ scanner class... the thing is that it is not generating…
Solid Snake
  • 130
  • 1
  • 7
2
votes
1 answer

Is there really a Flex++ Scanner?

I'm running on a Debian Squeeze and I get flex/flex++ installed using apt-get install flex. However I noted that flex++ is just a sym link to flex. So, really exists an "program" flex++ that generate c++ scanners or is just a flex flag that I shoud…
JohnTortugo
  • 6,356
  • 7
  • 36
  • 69
0
votes
1 answer

flex++ switchstream

I'm trying to write a parser using flex++ and bison. I need the parser to be able to read from a file and write a new file in output. I have an yyFlexLexer instantiated as follows: yyFlexLexer lexer; and I use it: int main(int argc, char*…
Sebastiano Merlino
  • 1,273
  • 12
  • 23
0
votes
1 answer

Using flex in Qt project

I need to use a flex++ generated parser code in my Qt application. I got this error: undefined reference to `yyFlexLexer::yywrap() I also added this line to .pro file: LIBS += -lfl
sorush-r
  • 10,490
  • 17
  • 89
  • 173
0
votes
1 answer

FlexLexer.h: No such file or directory flex++

I'm trying to write a program using flex++, however everytime I try to compile I receive the error message: FlexLexer.h: No such file or directory However that header is found on the include folder of flex. I don't have problems compiling lex…
Ricardo Muñoz
  • 27
  • 1
  • 3
  • 9
-1
votes
1 answer

Flex C++ print code in generated file and add color

I'm trying to insert the code that flex reads into my .tex file, this console app is supposed to take a .pascal and analyze it and then generate a .tex file but I'm not able to pass the code to the .tex file and then I need to add color to each…
AIAM2601
  • 3
  • 2