I finally published the version 1.0 of the book about writing development tools using the "brainfuck" programming language, see Write a compiler for brainfunk.
The source code is published on Github (rbfc / Ruby brainfuck compiler).
Friday, December 27, 2019
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
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
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
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
Sunday, September 23, 2018
Mastermind (part 2)
The second part presents an implementation of a simple text user interface (text UI).
.
Read the full entry at http://www.alef1.org/articles/2012/mastermind_p2.html.
Note: The article was first published on December 22, 2012
Read the full entry at http://www.alef1.org/articles/2012/mastermind_p2.html.
Note: The article was first published on December 22, 2012
Mastermind (part 1)
This article is the first part of a TDD (test driven development) example in Ruby. It implements a game named Mastermind.
Read the full entry at http://www.alef1.org/articles/2012/mastermind_p1.html.
Note: The article was first published on December 10, 2012.
Thursday, July 30, 2015
Testing Javascript from Ruby (part 2)
The previous part introduced a technique for testing client-side code from Ruby.
This part presents more tests and ends with some benchmarks.
Read the full entry at http://alef1.org/articles/2015/test_javascript_from_ruby_02_testing_internals.html.
Subscribe to:
Posts (Atom)