Hello World 프로그램의 출력이 표시되지 않습니다.MAIN이 Factor on 명령 줄에서 실행되지 않습니다.
$ cat hello.factor
USE: io
IN: hello
: hello (--) "Hello World!" print ;
MAIN: hello
$ factor hello.factor
$
(없음 출력 없음)
$ factor -run=hello
Vocabulary does not exist
name "hello"
$ factor -run=hello hello.factor
$
(없음 출력 없음) 어휘는 그것이 "로드"입니다 반드시 때, run
에 전달 될 때
'-run' 옵션이 도움이되지 않습니다 (편집 된 게시물 참조). – mcandre
어휘 경로가있는 것으로 보입니다. Factor 문서에서 [Factor source tree 외부의 코드 작업 ] (http://docs.factorcode.org/content/article-add-vocab-roots.html)을 시도하십시오. 일반적으로 UI 리스너에서 많은 일을 할 수 있습니다. [Scaffold tool] (http://docs.factorcode.org/content/article-tools.scaffold.html)을 사용하여 프로젝트를 시작한 다음 리스너에서 my-vocab-name "run"으로 실행하십시오. 컴파일하려면 리스너의 [Deploy tool] (http://docs.factorcode.org/content/article-tools.deploy.usage.html)을 사용하십시오. – kylc