From 0bce2aecb9fddcacbd7353bcdc0c69703ed49e52 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Sun, 22 Dec 2013 17:05:46 +0100 Subject: read now universally returns (undecoded) string --- compiler/elymasLexer.ey | 2 +- compiler/standardClient.ey | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler') diff --git a/compiler/elymasLexer.ey b/compiler/elymasLexer.ey index 2929285..411e7ad 100644 --- a/compiler/elymasLexer.ey +++ b/compiler/elymasLexer.ey @@ -43,7 +43,7 @@ { /input defv "" { - 4096 input .readstr cat + 4096 input .read cat _ "" streq not } { { _ "([^\\n]*)\\n(.*)" regex } { -102 -- TOKINT TOKSTR TOKID elymas .tokenize { diff --git a/compiler/standardClient.ey b/compiler/standardClient.ey index 2d62826..b92d5a4 100644 --- a/compiler/standardClient.ey +++ b/compiler/standardClient.ey @@ -428,7 +428,7 @@ } /writeall deff { =*f "" ==buffer { - buffer 4096 read cat =buffer # FIXME interpreter API should also have .read defined as returning string + buffer 4096 read cat =buffer buffer "" streq not } { buffer "\n" str .split ==lines -- cgit v1.2.3