Each Node can specify whether it supports hidden multiplication or not in an attribute of the class.
Hence checking can be done by finding out whether there is some consecutive nodes both with this attribute.
For example, let say we have a boolean property hiddenMultiplicative
Illustration of thought:
Each Node can specify whether it supports hidden multiplication or not in an attribute of the class. Hence checking can be done by finding out whether there is some consecutive nodes both with this attribute.
For example, let say we have a boolean property
hiddenMultiplicative