Trolls of 2013
summary
Implements a small interpreter called Ubie interpreter using the Ruby gem ruby_parser and sexp_processor, delivered test‑driven with autotest. Claims: first working pass in about 2 hours, ~130 lines of implementation and ~70 lines of tests. Language supports numbers, true/false/nil, if/while, local variables with scoped stacked hash environment, primitive and recursive user functions; recursion and tests pass. Also demos fle fuzzy detection, showing Rails score ~72,947 and a fuzzy run ~82,41 (≈+9,500).
AI-written summary · about
chapters (16)
- 0:00Introduction and intent
- 1:59Why build an interpreter
- 3:57Parsing with ruby_parser
- 6:30Building the interpreter
- 8:29Test-driven development
- 11:17Implementing operators
- 13:26Adding conditionals
- 16:08Variable management
- 18:23Implementing functions
- 21:22Advanced scoping
- 23:26Looping and conclusion
- 26:04Resources for further study
- 28:07Ligature trivia bonus
- 29:03Questions and answers
- 30:30Detecting duplicate code
- 32:44Fuzzy duplication detection








