Re: Looking for a fast C++ parser

"Vidar Hokstad" <vidar.hokstad@gmail.com>
10 Aug 2005 11:52:16 -0400

          From comp.compilers

Related articles
Designing a language for dataflow/parallelism peteg42@gmail.com (Peter Gammie) (2005-06-26)
Looking for a fast C++ parser nscc@c7.org (2005-08-07)
Re: Looking for a fast C++ parser snicol@apk.net (Scott Nicol) (2005-08-10)
Re: Looking for a fast C++ parser vidar.hokstad@gmail.com (Vidar Hokstad) (2005-08-10)
Re: Looking for a fast C++ parser firefly@diku.dk (Peter \Firefly\Lund) (2005-08-13)
Re: Looking for a fast C++ parser snicol@apk.net (Scott Nicol) (2005-08-16)
Re: Looking for a fast C++ parser Martin.Ward@durham.ac.uk (Martin Ward) (2005-08-16)
Re: Looking for a fast C++ parser firefly@diku.dk (Peter \Firefly\Lund) (2005-08-16)
Re: Looking for a fast C++ parser firefly@diku.dk (Peter \Firefly\Lund) (2005-08-16)
Re: Looking for a fast C++ parser snicol@apk.net (Scott Nicol) (2005-08-16)
[1 later articles]
| List of all articles for this month |
From: "Vidar Hokstad" <vidar.hokstad@gmail.com>
Newsgroups: comp.compilers
Date: 10 Aug 2005 11:52:16 -0400
Organization: http://groups.google.com
References: 05-06-13305-08-030
Keywords: C++, parse, tools
Posted-Date: 10 Aug 2005 11:52:16 EDT

nscc@c7.org wrote:
> Hi, I'm looking for a very fast C++ parser that can be used for text
> highlighting purposes in an IDE. I'm interested in both open source or
> licensed software written in C or C++.


In other words you're probably not looking for a full scale parser,
right? Using a full parser for syntax highlighting usually doesn't work
very well.


Take a look at Scintilla: http://www.scintilla.org/


It is a component for syntax highlighting for GTK or Win32. It goes far
beyond just the parsers, but I seem to remember that the code is
reasonably well separated if you want to extract just the C++
highlighter. If you like the rest of it though, you get far more than
just highlighting, and lots of other languages.


There's also GNU Source-highlight:
http://www.gnu.org/software/src-highlite/
However Source-highlight is more batch oriented.


Vidar



Post a followup to this message

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