diff options
| author | Drahflow <drahflow@gmx.de> | 2013-10-27 11:59:59 +0100 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2013-10-27 11:59:59 +0100 |
| commit | ce7f19585ce180576f127ae7abff4e662ee7e3f1 (patch) | |
| tree | 9d21cbb016e5dcd489d4fe5b17ebffda09ef380d /compiler/standardClient.ey | |
| parent | 247959af5f74e33445f201a97324995a99872cd8 (diff) | |
str .split
Diffstat (limited to 'compiler/standardClient.ey')
| -rw-r--r-- | compiler/standardClient.ey | 11 |
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 |
