October 2008 - Posts

Generating the Lambda Expression dynamically
28 October 08 03:53 PM | hania | 2 Comments   
The last post, I showed a simple way to build a lexicon scanner in .NET. We can now extend on the scanner and build a parser that generates a Lambda expression that can be compiled and called for further use. The parser I used is just a top-down recursive Read More...
Attachment(s): LambdaCalc.cs
Writing a simple lexicon scanner in .NET
23 October 08 10:36 PM | hania | 1 Comments   
I came across Linq and the new Lambda Expression classes in .NET 3.0. I thought, it would be a good idea to dynamically build a lambda expression from a math string, something like: (a + b) * 1.5. The string is parsed into a lambda expression and then Read More...
Attachment(s): LambdaCalcScanner.cs

Search

This Blog

Syndication

Page view tracker