Saturday, October 13, 2018

Postfix expressions revisited

Let's revisit the postfix expressions calculator of the previous entry and improve the code we wrote so far...

Read the full entry at http://www.alef1.org/articles/2012/postfix_expressions_revisited.html.

Note: The article was first published on October 14, 2012

Ruby: postfix expressions

Following a previous entry about the Ruby Fiber class that implemented a Tokenizer, here we implement a postfix expressions calculator.

Read the full entry at http://www.alef1.org/articles/2012/ruby_postfix_expressions.html.

Note: The article was first published on October 14, 2012

Ruby and Fiber

Writing a method that returns at some point and can resume later to return a new value is possible when using the Fiber class. This entry presents the Fiber class by implementing a tokenizer (a tokenizer analyzes an input stream, searches for sequences that matches some patterns and produces tokens).

Read the full entry at http://www.alef1.org/articles/2012/ruby_and_fiber.html.

Note: The article was first published on October 14, 2012