Listening for `functionCall`?
fvictorio opened this issue · comments
Franco Victorio commented
Hi, I don't know much about ANTLR so sorry in advance if this doesn't make sense.
I want to add a Listener for functionCall
, but those nodes are interpreted as expression
s instead. I guess this happens because one of the rules for expression
(the fourth one) has the same definition as functionCall
(and that rule is not inside expression
). Maybe replacing that for functionCall
will do the trick?
Thanks!
Franco Victorio commented
Ok, that doesn't work because it causes a mutually left-recursive error
.
Federico Bond commented
Yes, there's a mutual left recursion error that I haven't found a workaround to. You can check the code at solidity-parser-antlr for how to handle the case.