Udo Schneider wrote:
All,

I just finished a blog entry. It shows how to use Smalltalk blocks as parsers/translators. E.g. translating a Block

    [:customer | (customer joinDate year is: Date today year)]

into an SQL-like String

    (YEAR(customers.joinDate) = 2014)

The SQL stuff is just an example - you can create nearly any output.

Check out http://readthesourceluke.blogspot.de/2014/09/block-translators-parsing-magic.html

Maybe that's old stuff for some of you - but I hope it's interesting for some at least :-)

Comments and feedback appreciated.

CU,

Udo

Very nice write up.  Fairly straight forward to follow but not something I could have done from scratch.  Nice to have a recipe for it. Thanks

One spelling mistake...
> This will give es enough clues
This will give us enough clues

cheers -ben

Reply via email to