C#/。NET词法分析器发电机词法、分析器、发电机、NET

2023-09-02 23:45:05 作者:蓅倣菰獨

我在寻找的C#/像样的词汇扫描程序生成NET - 这支持单向code字符类别,并生成便于阅读和放大器。高效的code。任何人都知道一个?

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?

编辑:我的需要的的的Uni code三类,而不仅仅是单向code字符的支持。目前在(字母,大写)单独类别于1421年的人物,我需要非常专门搭配很多不同的种类,宁可不要用手书写的字符为它设置必要的。

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.

另外,实际的code是的必须的 - 这排除了事情,生成二进制文件,然后将其与驱动程序(即GOLD)使用

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)

编辑:ANTLR不支持统一code类呢。这里是它的一个开放的问题,虽然,所以它有一天会适合我的需要。

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

推荐答案

GPLEX似乎支持您的要求。

GPLEX seems to support your requirements.