Last active
September 15, 2018 09:31
-
-
Save cprieto/8dc97c2eea65b30964a5c1bf06e4064c to your computer and use it in GitHub Desktop.
It works in Kotlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cprieto.samples | |
class ShortToStringConverterListener: ArrayInitBaseListener() { | |
private val builder = StringBuilder() | |
override fun enterInit(ctx: ArrayInitParser.InitContext?) { | |
builder.append("{") | |
} | |
override fun toString(): String { | |
return builder.toString() | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cprieto.samples | |
class ShortToStringConverterListener: ArrayInitBaseListener() { | |
private val builder = StringBuilder() | |
override fun enterInit(ctx: ArrayInitParser.InitContext?) { | |
builder.append("{") | |
} | |
override fun toString() = builder.toString() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment