def rule2text(ctx):
    stream = ctx.start.getInputStream()
    startIdx = ctx.start.start
    stopIdx = ctx.stop.stop
    return stream.getText(startIdx, stopIdx)
def rule2text(ctx):
    stream = ctx.start.getInputStream()
    startIdx = ctx.start.start
    stopIdx = ctx.stop.stop
    return stream.getText(startIdx, stopIdx)