首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Factor interpreter中导入模块?

如何在Factor interpreter中导入模块?
EN

Stack Overflow用户
提问于 2011-08-18 08:06:45
回答 1查看 136关注 0票数 1

我在追踪山姆的decipher tutorial当他在我的电脑上执行8 group时,因子抱怨说它不知道group函数。

代码语言:javascript
复制
( 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位于grouping module中,但我不知道如何在解释器中导入该模块(类似于Haskell的GHCi中的+m module )。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-08-18 08:18:42

在解释器中,键入USE: grouping ;将单个词汇表添加到搜索路径,或键入USING: a b c ;添加词汇表列表。

文档:USE: USING:

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7100979

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档