I would suggest to pre-create trees of NimNodes and then compare them to 
encountered ones. It may slow down the compilation process but will definitely 
reduce the cyclomatic complexity of the code.

Another way is to make the syntax rules of the sugar more strict to prevent 
infixes like this "**..|-**" and to separate parts of the expression in more 
obvious way.

Reply via email to