hpi-swa / Ohm-S

A Squeak/Smalltalk implementation of the metaprogramming framework Ohm.
MIT License
24 stars 8 forks source link

OhmExplicitSendsSmalltalk has only OperandCascades #46

Closed Paula-Kli closed 4 years ago

Paula-Kli commented 4 years ago

Matching something like self new test; test it is matched as OperandCascade with self as operand and new test and test as MessageChains. I was wondering whether that should be an UnaryCascade.

In case it shouldn't. What is an UnaryCascade and what a BinaryCascade? I can't find an example that is matched as one of those.

codeZeilen commented 4 years ago

self new test; test

Should be a unary cascade, as it is a cascade of messages send to the result of a unary message send. I will see to it.

codeZeilen commented 4 years ago

Fixed in 589dc09b