We currently only allow method expressions on ID's or string literals. This is an unnecessary limitation, but one we made to speed up our initial development of the feature.
We should remove this limitation, but be aware it could amount to significant work especially in the type checker. The related CFG rule is here:
|
| id DOT ID LPAR (actualParameters)? RPAR #varMethodInvoke |
We currently only allow method expressions on ID's or string literals. This is an unnecessary limitation, but one we made to speed up our initial development of the feature.
We should remove this limitation, but be aware it could amount to significant work especially in the type checker. The related CFG rule is here:
Minecraft-Turtle-Language/src/main/antlr4/dk/aau/p4/abaaja/mctl.g4
Line 65 in 86822fd