Skip to content

Commit

Permalink
Merge branch 'master' of git://repo.or.cz/cslatevm
Browse files Browse the repository at this point in the history
  • Loading branch information
briantrice committed Mar 20, 2010
2 parents 171cc77 + 033eb79 commit 737bcaf
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/net/init.slate
@@ -1,6 +1,6 @@


load: 'src/lib/regex.slate'.
load: 'src/text/regex.slate'.
load: 'src/net/sockets.slate'.
load: 'src/lib/converter.slate'.
load: 'src/net/uri.slate'.
Expand Down
2 changes: 1 addition & 1 deletion src/shell/init.slate
@@ -1,6 +1,6 @@
"shell routines"

load: 'src/lib/regex.slate'.
load: 'src/text/regex.slate'.
load: 'src/shell/matching.slate'.
load: 'src/shell/shell.slate'.

File renamed without changes.
21 changes: 21 additions & 0 deletions src/text/stream-processors.slate
@@ -0,0 +1,21 @@

streams define: #LimitedProcessor &parents: {StreamProcessor} &slots: {#count -> 0}.

s@(LimitedProcessor traits) for: n
[
s clone `>> [count: n. ]
].


s@(LimitedProcessor traits) isAtEnd
[
s count <= s count zero \/ [resend]
].


s@(LimitedProcessor traits) next
[
s count: s count - 1.
s source next
].

0 comments on commit 737bcaf

Please sign in to comment.