【发布时间】:2020-04-21 10:42:35
【问题描述】:
main的错误代码是(string-match "module" (help uri-path)),它返回一个错误
scheme@(guile-user) [5]> (string-match "module" (help uri-path))
`uri-path' is an object in the (web uri) module.
- Special Form: uri-path
While compiling expression:
Syntax error:
unknown file:9:23: sequence of zero expressions in form (begin)
scheme@(guile-user) [5]>
我想要达到的是只显示一行帮助功能输出。如何解决?
【问题讨论】:
-
help是打印帮助,而不是作为字符串返回。您必须了解help的实现才能以某种方式将输出捕获为字符串。
标签: scheme read-eval-print-loop guile