summaryrefslogtreecommitdiff
path: root/src/texec/libtnsl.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/texec/libtnsl.go')
-rw-r--r--src/texec/libtnsl.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/texec/libtnsl.go b/src/texec/libtnsl.go
index b810e5f..2a2a9d5 100644
--- a/src/texec/libtnsl.go
+++ b/src/texec/libtnsl.go
@@ -114,6 +114,8 @@ func tnslFileEval(file, in TVariable, function string) TVariable {
func tprint(in TVariable) {
if equateType(in.Type, tString) {
fmt.Print(in.Data.(string))
+ } else if equateType(in.Type, tCharp) {
+ fmt.Print(in.Data.(rune))
} else {
fmt.Print(in.Data)
}
@@ -122,6 +124,8 @@ func tprint(in TVariable) {
func tprintln(in TVariable) {
if equateType(in.Type, tString) {
fmt.Println(in.Data.(string))
+ } else if equateType(in.Type, tCharp) {
+ fmt.Println(in.Data.(rune))
} else {
fmt.Println(in.Data)
}