Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
22 Nov 2010CPallini 3 alternatives
There was a request about in Q&A. The question was deleted, anyway I think the subject may be interesting.
Here is my take on the same, using Lambda expressions and slightly more advanced regular expression features:I have not tested this code, so errors may exist.This implementation will ignore unrecognized tokens. namespace Postfix { class Parser { static Dictionary<string,...
21 Dec 2010Andreas Gieriet
For those who like dense code, here is a sample :) - Make the dictionary static readonly, init directly- Swap the arguments in the lambda expressions and call by direct pop from the stack- Make the regex simpler and put the logic of parsing into the Exec (the regex only tokenizes the...
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.