Beispiel #1
0
 def visitIds(self, ctx:MCParser.IdsContext):
     return len(ctx.ID()) + len(ctx.COMMA())        
Beispiel #2
0
 def visitIds(self, ctx: MCParser.IdsContext):
     return ctx.getChildCount()
Beispiel #3
0
 def visitIds(self, ctx: MCParser.IdsContext):
     return [ids.getText() for ids in ctx.ID()]
Beispiel #4
0
 def visitIds(self, ctx: MCParser.IdsContext):
     return [x.getText()
             for x in ctx.ID()]  # return the list of identifier's lexemes