views:

755

answers:

3

Can anyone recommend a good .NET based lexical analyser, preferably written in C#?

+3  A: 

Download the Visual Studio SDK; it includes a managed parser/lexer generator.

(Edit: It was written on my university campus, apparantly :D)

TraumaPony
They use gplex and gppg, not sure if they changed anything to it though.
leppie
AFAIK, they just changed the name.
TraumaPony
Any, just had a look, they have some new version out! Yay!
leppie
+2  A: 

gplex and cs_lex

leppie
+3  A: 

ANTLR has a C# target

Mark Cidade
ANTLR looks good in so far as it has lots of features, but the documentation is very poor.
David Arno
There's good documentation at http://www.pragprog.com/titles/tpantlr/the-definitive-antlr-reference ($24 PDF)
Mark Cidade
$24 is a lot of money for a PDF that I cannot preview before buying. Are you connected with the author, or recommending it because you have bought it and found it useful?
David Arno
Neither, but I do plan on buying the book. There's a free chapter excerpt at http://media.pragprog.com/titles/tpantlr/errors.pdf .
Mark Cidade
Thanks for the link marxidad. It looks good from what that chapter shows. Guess I'll take the plunge...
David Arno
I just bought the book + PDF combo.
Mark Cidade