From 2d047af39582e1eaef5139b6785d5053ac206182 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Sun, 22 Dec 2013 16:43:54 +0100 Subject: txt now typed --- elymas/lib/txt.ey | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elymas/lib/txt.ey b/elymas/lib/txt.ey index 833ddc8..faae0ce 100644 --- a/elymas/lib/txt.ey +++ b/elymas/lib/txt.ey @@ -4,7 +4,7 @@ # 0 <- leading digits converted to int (0, if none) { "^(\\d*)" regex -- ==n [ n { 48 sub } each ] reverse 10 math .unbase - } /u deffd + } [ "" ] [ 0 ] ' /u deffd # 0 -> string # 0 <- leading hexadecimal digits converted to int (0, if none) @@ -18,7 +18,7 @@ { "^([0-9A-Fa-f]*)" regex -- ==n [ n { 48 sub hexDigitsReverse } each ] reverse 16 math .unbase - } /hu deffd + } [ "" ] [ 0 ] ' /hu deffd > /consume defvd < @@ -26,7 +26,7 @@ # 0 <- decimal representation as string { _ { [ -01 10 math .base reverse "0123456789" each ] str .fromArray } { -- "0" } ? * - } /u deffd + } [ 0 ] [ "" ] ' /u deffd > /produce defvd > /txt defvd -- cgit v1.2.3