aboutsummaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-12-22 17:05:46 +0100
committerDrahflow <drahflow@gmx.de>2013-12-22 17:05:46 +0100
commit0bce2aecb9fddcacbd7353bcdc0c69703ed49e52 (patch)
treef3e0e48ef874ebd0ef5d5fed90e41ca8f806214e /compiler
parent95129aebebc6f2552a600e443db4a207412f5f5b (diff)
read now universally returns (undecoded) string
Diffstat (limited to 'compiler')
-rw-r--r--compiler/elymasLexer.ey2
-rw-r--r--compiler/standardClient.ey2
2 files changed, 2 insertions, 2 deletions
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