rename [.] to sequence.
parent
12cc51c01b
commit
e630f884a1
|
@ -25,7 +25,7 @@ M: compound (compile) ( word -- )
|
||||||
: precompile ( word -- )
|
: precompile ( word -- )
|
||||||
#! Print linear IR of word.
|
#! Print linear IR of word.
|
||||||
[
|
[
|
||||||
word-def dataflow optimize linearize simplify [.]
|
word-def dataflow optimize linearize simplify sequence.
|
||||||
] with-scope ;
|
] with-scope ;
|
||||||
|
|
||||||
: compile-postponed ( -- )
|
: compile-postponed ( -- )
|
||||||
|
|
|
@ -17,7 +17,7 @@ M: inference-error error. ( error -- )
|
||||||
"! Inference error:" print
|
"! Inference error:" print
|
||||||
dup inference-error-message print
|
dup inference-error-message print
|
||||||
"! Recursive state:" print
|
"! Recursive state:" print
|
||||||
inference-error-rstate [.] ;
|
inference-error-rstate sequence. ;
|
||||||
|
|
||||||
M: value literal-value ( value -- )
|
M: value literal-value ( value -- )
|
||||||
{
|
{
|
||||||
|
|
|
@ -321,9 +321,9 @@ M: wrapper pprint* ( wrapper -- )
|
||||||
: short. ( object -- )
|
: short. ( object -- )
|
||||||
dup unparse-short swap write-object terpri ;
|
dup unparse-short swap write-object terpri ;
|
||||||
|
|
||||||
: [.] ( sequence -- ) [ short. ] each ;
|
: sequence. ( sequence -- ) [ short. ] each ;
|
||||||
|
|
||||||
: stack. reverse-slice [.] ;
|
: stack. reverse-slice sequence. ;
|
||||||
|
|
||||||
: .s datastack stack. ;
|
: .s datastack stack. ;
|
||||||
: .r callstack stack. ;
|
: .r callstack stack. ;
|
||||||
|
|
|
@ -95,8 +95,8 @@ M: string error. ( error -- ) print ;
|
||||||
|
|
||||||
M: object error. ( error -- ) . ;
|
M: object error. ( error -- ) . ;
|
||||||
|
|
||||||
: :s ( -- ) "error-datastack" get reverse [.] ;
|
: :s ( -- ) "error-datastack" get stack. ;
|
||||||
: :r ( -- ) "error-callstack" get reverse [.] ;
|
: :r ( -- ) "error-callstack" get stack. ;
|
||||||
|
|
||||||
: :get ( var -- value ) "error-namestack" get (get) ;
|
: :get ( var -- value ) "error-namestack" get (get) ;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ prettyprint io strings sequences math hashtables parser ;
|
||||||
: vocab-apropos. ( substring vocab -- )
|
: vocab-apropos. ( substring vocab -- )
|
||||||
#! List all words in a vocabulary that contain a string.
|
#! List all words in a vocabulary that contain a string.
|
||||||
tuck vocab-apropos dup [
|
tuck vocab-apropos dup [
|
||||||
"IN: " write swap print [.]
|
"IN: " write swap print sequence.
|
||||||
] [
|
] [
|
||||||
2drop
|
2drop
|
||||||
] ifte ;
|
] ifte ;
|
||||||
|
|
Loading…
Reference in New Issue