如何在 Factor 解释器中导入模块?
我正在关注 Sam 的 解密教程。当他执行 8 group
时,我的计算机上的 Factor 抱怨它不知道 group
函数。
( scratchpad ) "01101001001000000110011001110101011000110110101101100101011001000010000001111001011011110111010101110010001000000110110101101111011011010000110100001010011000010110111001100100001000000110111001101111011101110010000001100110011011110111001000100000011110010110111101110101"
--- Data stack:
"0110100100100000011001100111010101100011011010110110010101100..."
( scratchpad ) 8 group
1: 8 group
^
No word named “group” found in current vocabulary search path
The following restarts are available:
:1 Use the grouping vocabulary
:2 Use the unix.ffi vocabulary
:3 Use the unix.groups vocabulary
4 :res Defer word in current vocabulary
Type :help for debugging help.
显然 group
位于 分组模块 ,但我不知道如何在解释器中导入模块(类似于 Haskell 的 GHCi 中的 +m module
)。
I'm following the Sam's decipher tutorial. When he does 8 group
, on my computer Factor gripes that it doesn't know the group
function.
( scratchpad ) "01101001001000000110011001110101011000110110101101100101011001000010000001111001011011110111010101110010001000000110110101101111011011010000110100001010011000010110111001100100001000000110111001101111011101110010000001100110011011110111001000100000011110010110111101110101"
--- Data stack:
"0110100100100000011001100111010101100011011010110110010101100..."
( scratchpad ) 8 group
1: 8 group
^
No word named “group” found in current vocabulary search path
The following restarts are available:
:1 Use the grouping vocabulary
:2 Use the unix.ffi vocabulary
:3 Use the unix.groups vocabulary
4 :res Defer word in current vocabulary
Type :help for debugging help.
Apparently group
is located in the grouping module, but I don't know how to import the module in the interpreter (something like +m module
in Haskell's GHCi).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在解释器中,键入
USE: grouping ;
将单个词汇添加到搜索路径,或键入USING: abc ;
添加词汇列表。文档:使用: 使用:。
In the interpreter, type
USE: grouping ;
to add a single vocabulary to the search path, orUSING: a b c ;
to add a list of vocabularies.Documentation: USE: USING:.