(f)lex as a second phase

Andras Erdei <ccg@freemail.c3.hu>
17 Feb 2000 18:08:39 -0500

          From comp.compilers

Related articles
(f)lex as a second phase ccg@freemail.c3.hu (Andras Erdei) (2000-02-17)
| List of all articles for this month |

From: Andras Erdei <ccg@freemail.c3.hu>
Newsgroups: comp.compilers
Date: 17 Feb 2000 18:08:39 -0500
Organization: Compilers Central
Keywords: lex

    I'm trying to use flex in the middle of a three step compiling

    - a literate tool generates flex source
    - flex generates C source
    - finally egcs

The problem is that both the literate tool and flex are able to insert
#line directives, but flex is unable to read them -- so the
errors/warnings generated by egcs point to the intermediate file (the
input to flex). (Also, if i enable the insertion of #lines in the
literate tool, things get a bit hairy when flex tries to recognize
them as rules.)

Am i the only one with this problem? Do you happen to know any
solution? Will flex in the future support #lines in it's input ?


    Andras Erdei
[Flex doesn't support #line. You have the source, if it's really important,
write the code to handle them and send it along to Vern for integration in
a future version. -John]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.