repo.or.cz
/
factor
/
jcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix $or
[factor/jcg.git]
/
extra
/
sto
/
sto.factor
blob
b43c9cc35918745b34415c430d7684e4e14d5c80
1
2
USING: kernel lexer parser words quotations compiler.units ;
3
4
IN: sto
5
6
! Use 'sto' to bind a value on the stack to a word.
7
!
8
! Example:
9
!
10
! 10 sto A
11
12
: sto
13
\ 1quotation parsed
14
scan
15
current-vocab create
16
dup set-word
17
literalize parsed
18
\ swap parsed
19
[ define ] parsed
20
\ with-compilation-unit parsed ; parsing