This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Where to get lex.l for GNU C++
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: ?? ?? <likephoenix at hotmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 2 May 2003 06:58:12 +0100
- Subject: Re: Where to get lex.l for GNU C++
- References: <Law10-F581IAhe3Et7B00022c8d@hotmail.com>
?? ?? wrote:-
> I want to build an independent lexical analyzer and syntax analyzer for GNU
> C++.
> I find parse.y in gcc/cpp which contains syntax of GNU C++, but there is no
> lex.l in it.
> Where can I get it?
> Must I write a lexical analyzer from scratch?
Yes. If you want to have identical lexical rules and warnings to GCC,
I suspect you'll find it hard to impossible with automatically generated
analyzers.
Neil.