user
user

Reputation: 21

example sample of lexical analyzer in c#

i want to use some built in lexical analyzer and parser, i need some examples or samples demonstaring the use.

any one has use any lexical analyzer in C#???

can any one share the sample and code how to use that.

i didnt find many ANTLR and lex but i cant find any examples or tutorial.

please let me know if any one has used any such thing.

Upvotes: 2

Views: 14557

Answers (1)

Rion Williams
Rion Williams

Reputation: 76547

The Lucene.NET Text Analyzer looks quite promising, and is probably something more along the lines of what you are looking for:

Lucene Text Analyzer - C# | CodeProject

Here is an HTML Lexical Analyzer written in C#, might help get you pointed in the right direction.

HTML Lexical Analyzer - C# | CodeProject

Finally, here is a blog by Omer van Kloeten on the design of Lexical Analyzers, in case you decide to work on your own:

Designing a Lexical Analyzer | Omer van Kloeten's Blog

Upvotes: 5

Related Questions