* Where to get lex.l for GNU C++
@ 2003-05-02 3:05 石 峰
2003-05-02 5:58 ` Neil Booth
0 siblings, 1 reply; 2+ messages in thread
From: 石 峰 @ 2003-05-02 3:05 UTC (permalink / raw)
To: gcc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 380 bytes --]
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?
Thanks.
_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Where to get lex.l for GNU C++
2003-05-02 3:05 Where to get lex.l for GNU C++ 石 峰
@ 2003-05-02 5:58 ` Neil Booth
0 siblings, 0 replies; 2+ messages in thread
From: Neil Booth @ 2003-05-02 5:58 UTC (permalink / raw)
To: ?? ??; +Cc: gcc
?? ?? 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-02 5:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02 3:05 Where to get lex.l for GNU C++ 石 峰
2003-05-02 5:58 ` Neil Booth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).