5

I'm looking for something simple to use where the grammar is easy to define.

Renaud Bompuis
  • 16,596
  • 4
  • 56
  • 86

5 Answers5

7

Although I've never used it before, ANTLR has C# runtime.

Eugene Yokota
  • 94,654
  • 45
  • 215
  • 319
4

If you use F#, check out FParsec.

Brian
  • 117,631
  • 17
  • 236
  • 300
2

Just found out about Irony. Used for writing DSL.
Thought I would add it to the list.

Renaud Bompuis
  • 16,596
  • 4
  • 56
  • 86
1

System.Text.RegularExpressions?

LeppyR64
  • 5,251
  • 2
  • 30
  • 35
  • That's a pretty brave answer. There's some real Zealots who will only condone real parsers, and not using things like Regex for parsing code. – Kibbee Dec 14 '08 at 02:03
  • I'll take that as a valid answer since I didn't define my needs and there are cases where regular expressions are sufficient to define simple DSL. – Renaud Bompuis Dec 14 '08 at 02:17
1

Give a look to Coco/R for C#.

Christian C. Salvadó
  • 807,428
  • 183
  • 922
  • 838