1

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.

user
  • 11
  • 1
  • 1
  • 2

1 Answers1

4

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

JuanR
  • 7,405
  • 1
  • 19
  • 30
Rion Williams
  • 74,820
  • 37
  • 200
  • 327
  • It looks like this is the updated link for [Designing a Lexical Analyzer](https://omervk.wordpress.com/2004/07/13/designing-the-lexical-analyzer/) as the original no longer works. – Colin Mackay Jun 24 '17 at 20:49