C# Expression Evaluators

Warning: this is not the usual code sample ready to be cut and pasted in your homework due for tomorrow.

OTOH, if you are one of those guys that just have to understand why and how you can implement an expression evaluator in C#, then boy has Chuck Jazdzewski some interesting information for you. Chuck likes to propose interesting problems/challenges (often useless yet fascinating) and then discuss at detail various approaches to the problem, in the case of expression evaluators, Chuck offers us four alternatives:

  1. The classic procedural solution (á la plain old Visual Basic)
  2. The object oriented solution (at the best 199x Smalltalk/Java style)
  3. The visitor pattern solution (for the guys one stair above average Java or C# programmers)
  4. The layered solution using partial classes (for the neoteric programmers using C# 2.0 or VB.NET 2005)

As I said, don't expect a complete solution ready to be run but some pseudo-code and an interesting discussion of pros and cons. It may not help you with tomorrow's homework but it sure will help you impress the geek gal on the next cubicle.

Published Tuesday, June 06, 2006 1:30 AM by Edgar Sánchez

Comments

# News: TestDriven, SideKick, Expression Evaluators and Security to boot

Wednesday, June 07, 2006 2:52 AM by ISerializable - Roy Osherove's Blog
I've gathered some interesting links posted only yesterday, so I don't forget (and neither should you)....

# Evaluating Expressions at Runtime in .NET (C#) « HSI Developer Blog

Pingback from  Evaluating Expressions at Runtime in .NET (C#) « HSI Developer Blog

# Evaluating Expressions at Runtime in .NET (C#) | The Freak Parade

Pingback from  Evaluating Expressions at Runtime in .NET (C#) | The Freak Parade

# re: C# Expression Evaluators

Saturday, December 18, 2010 5:10 AM by how to make an ipad app

To be both a speaker of words and a doer of deeds.

-----------------------------------

# re: C# Expression Evaluators

Sunday, December 26, 2010 2:19 PM by JonathanWood

If you are interested in another take on this, I've just published an article on this very subject and, so far, I haven't seen anyone else take the approach I did. If anyone's interested, you can see the code at www.blackbeltcoder.com/.../a-c-expression-evaluator.

# re: C# Expression Evaluators

Tuesday, January 04, 2011 5:41 PM by ipad case

-----------------------------------------------------------

"sometimes people here the words net marketing they usually assume, yahoo or facebook or myspace, but there may be a bunch of other strategies to basically market  a site or business enterprise and get your way up there like myspace did."

# re: C# Expression Evaluators

Sunday, January 09, 2011 5:39 PM by best ipad stand

-----------------------------------------------------------

found your website on del.icio.us right now and really liked it.!! i bookmarked it and will be again to check it out some far more later ..

# re: C# Expression Evaluators

Thursday, February 10, 2011 3:18 PM by toaster oven reviews

Hey very good web site! Guy Stunning Wonderful  I'll bookmark your web site and consider the feeds also.

# re: C# Expression Evaluators

Wednesday, June 29, 2011 4:00 PM by Janae Knuteson

hank for this very good web log! I totally appreciate it!

# re: C# Expression Evaluators

Monday, July 04, 2011 2:14 PM by Latricia Mazzillo

With havin so significantly content and articles do you ever run into any problems of plagorism or copyright violation? My weblog has plenty of special content I've either written myself or outsourced but it appears loads of it truly is popping it up all over the world wide web without having my agreement. Do you know any strategies to support avoid content from becoming stolen? I'd actually appreciate it.

Leave a Comment

(required) 
(required) 
(optional)
(required)