Where to get lex.l for GNU C++
Neil Booth
neil@daikokuya.co.uk
Fri May 2 05:58:00 GMT 2003
?? ?? 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.
More information about the Gcc
mailing list