aboutsummaryrefslogtreecommitdiff
path: root/elymas/lib
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-12-22 16:43:54 +0100
committerDrahflow <drahflow@gmx.de>2013-12-22 16:43:54 +0100
commit2d047af39582e1eaef5139b6785d5053ac206182 (patch)
tree01675ff9329e56488d75cd0732ecbb3593c8341c /elymas/lib
parent32cbc8d51504f9a16a59fd5e8e8bc3f74d9943d1 (diff)
txt now typed
Diffstat (limited to 'elymas/lib')
-rw-r--r--elymas/lib/txt.ey6
1 files 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