Related articles |
---|
(f)lex as a second phase ccg@freemail.c3.hu (Andras Erdei) (2000-02-17) |
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
process:
- 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 ?
TIA
Andras Erdei
ccg@freemail.c3.hu
[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]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.