~/linuxcnc/components $ halcompile --document stmbl.comp
stmbl.comp:3:1: Trying to find one of "$", "pin", "param", "function", "variable", "option", "see_also", "notes", "description", "license", "author", "include", "modparam"
> */ simple example of a realtime comp that does networking/*
> ^
while parsing File():
看起来您可能混淆了 C/C++ 注释的分隔符:它们以开头/*和结尾,*/但您却反过来了。
我通过修改测试套件中的一个 comp 文件进行测试,在第一行添加注释:
/* Test that names match */
component names_match;
license "GPL";
pin out bit out;
function _ nofp;
;;
FUNCTION(_) {}
当用 C 风格的多行注释测试 halcompile –document 时,我得到一个错误:
~/linuxcnc/components $ halcompile –document stmbl.comp
stmbl.comp:3:1: Trying to find one of “$”, “pin “, “param”, “function”, “variable”, “option”, “see_also”, “notes”, “description”, “license”, “author”, “include”, “modparam”