views:

36

answers:

2

I am trying to create a simple parser/lexer, my problem is I have to use this in silverlight, so I need a parser/lexer that requires no runtime, it needs to have pure C# code without any dependency on any runtime. I know there used to be lex/yacc tool, but cant find it anymore for C#, I did study Sql Modelling M language, but to my understanding, it will not work inside silverlight as it needs Sql modelling runtime or some dependent components that may not be available on silverlight on non microsoft platform.

So M Programming looks like out, can ANTLR be used in silverlight or is there any other parser which generates all the code without any runtime dependencies?

A: 

gppg and gplex should work without issue.

leppie
Can you provide me some link from where to download and some examples? I tried searching in google, but I ended up with lots of forums instead a proper website.
Akash Kava
Both projects on codeplex. Will add links now.
leppie
Thank you, I am going through them now
Akash Kava
A: 

http://irony.codeplex.com/ provides a good Parser/Lexer for expression parsing and it is straight forward to use it.

Akash Kava