Implementing Double Dispatch via the Visitor Pattern for Transaction State Reconciliation
The Visitor design pattern isolates behavioral logic from the data structures it traverses. Instead of embedding conditional branching within each domain entity, operations are encapsulated in external visitor classes. This architectural shift enables the introduction of new behaviors by instantiating additional visitors, leaving the underlying ...
Posted on Sun, 19 Jul 2026 17:13:53 +0000 by outatime88
Implementing Expression Evaluation in a C# Interpreter Inspired by Crafting Interpreters
After successfully building a lexer and parser that convert source code into an abstract syntax tree (AST), the next critical step is to evaluate expressions. This phase brings the AST to life by computing actual values from syntactic structures.
The Role of the Visitor Pattern
To evaluate different node types—such as binary operations, literal ...
Posted on Mon, 11 May 2026 12:48:58 +0000 by lordrt