aboutsummaryrefslogtreecommitdiff
path: root/compiler/standardClient.ey
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-10-27 11:59:59 +0100
committerDrahflow <drahflow@gmx.de>2013-10-27 11:59:59 +0100
commitce7f19585ce180576f127ae7abff4e662ee7e3f1 (patch)
tree9d21cbb016e5dcd489d4fe5b17ebffda09ef380d /compiler/standardClient.ey
parent247959af5f74e33445f201a97324995a99872cd8 (diff)
str .split
Diffstat (limited to 'compiler/standardClient.ey')
-rw-r--r--compiler/standardClient.ey11
1 files changed, 5 insertions, 6 deletions
diff --git a/compiler/standardClient.ey b/compiler/standardClient.ey
index 8e7a3a9..40f7ebd 100644
--- a/compiler/standardClient.ey
+++ b/compiler/standardClient.ey
@@ -448,12 +448,11 @@
buffer 4096 read cat =buffer # FIXME interpreter API should also have .read defined as returning string
buffer "" streq not
} {
- {
- buffer "([^\\n]*)\\n" regex
- } {
- _ len 1 add buffer str .postfix =buffer
- f
- } loop
+ buffer "\n" str .split ==lines
+ 0 lines len 1 sub range {
+ lines * f
+ } each
+ lines len 1 sub lines * =buffer
} loop
} /eachLine deff
> > -- } /makefile deff