4 ms·
Feeling cranky today, lockdown and everything. This is an elementary interpreter, clumsily implemented because of all the object oriented cruft.
by pacala 7y ago
Feeling cranky today, lockdown and everything. This is an elementary interpreter, clumsily implemented because of all the object oriented cruft.
- quelltext 7y agoDon't you mean the Interpreter pattern /s
- agentultra 7y agoIndeed... in Haskell this can be implemented with a GADT and an evaluator which is really easy to express. Still useful to know the "pattern" regardless of OOP cruft, Javascript prototypes, or Haskell data types.
- deleted 7y ago[deleted]