RCSNUSP/Factor: Difference between revisions

m
Fixed syntax highlighting.
(Create Factor SNUSP implementation page)
 
m (Fixed syntax highlighting.)
 
Line 1:
{{implementation|SNUSP}}{{collection|RCSNUSP}}
This is a translation of the Go entry [http://www.rosettacode.org/wiki/Execute_SNUSP/Go], and as such consists of core SNUSP, a fixed-size data store, and no bounds checking. It has been made a bit more idiomatic for Factor by splitting the implementation up into several words (functions), and uses a tuple in place of Go's lexical variables.
<langsyntaxhighlight lang="factor">USING: accessors byte-arrays combinators
combinators.short-circuit fry io kernel math multiline sequences
splitting strings ;
Line 63:
: snusp-demo ( -- ) sample-program 5 <snusp> execute-snusp ;
 
MAIN: snusp-demo</syntaxhighlight>
</lang>
{{out}}
<pre>
9,487

edits