Add stack views, both char and long

This commit is contained in:
Jacob
2018-11-22 19:22:53 -05:00
parent af2f0442bf
commit 03b067ee2c
3 changed files with 49 additions and 5 deletions

View File

@@ -3,5 +3,5 @@ package befide.befunge.state
data class Value(val value: Long) {
constructor(value: Char) : this(value.toLong())
val asChar: Char? = if (value in (32..126)) value.toChar() else null
val asChar: Char? = if (value in (32..127)) value.toChar() else null
}