Alex Rivera | Logout

C#/.NET Lexer Generators

Asked 2008-10-05T16:04:51.407
11

I'm looking for a decent lexical scanner generator for C#/.NET -- something that supports Unicode character categories, and generates somewhat readable & efficient code. Anyone know of one?


EDIT: I need support for Unicode categories, not just Unicode characters. There are currently 1421 characters in just the Lu (Letter, Uppercase) category alone, and I need to match many different categories very specifically, and would rather not hand-write the character sets necessary for it.

Also, actual code is a must -- this rules out things that generate a binary file that is then used with a driver (i.e. GOLD)


EDIT: ANTLR does not support Unicode categories yet. There is an open issue for it, though, so it might fit my needs someday.

Edit
Report

1 Answer

0

I just found this

http://www.seclab.tuwien.ac.at/projects/cuplex/lex.htm

It says that it's configurable enough to support unicode ;-).

Herber

answered 2011-06-10T23:41:32.877

Your Answer