Search code examples
silverlightparser-generator

Language Parser in Silverilght


I need to write parser for some specific language (subset of SQL). As I know, the easiest way to do this is to define grammar in BNF and use yacc-like tool (I have positive experience with GPPG). But when I started, I've realized that these tools produce parser with dependency on some core parser assemblies (e.g. ShiftReduceParser.dll for GPPG). I need to implement parser for Silverilght, so I can't use libs targeted to full framework.

Are there any parser generator tools which can be used in/for Silverilght?


Solution

  • I don't know what framework libraries you're allowed to use in Silverlight, but Coco/R seems pretty light-weight, just needing some stream/text processing from System.IO and System.Text.