Contact me: hankecnc@gmail.com

半编译——文档 #232

推推 grbl 3年前 (2023-01-29) 321次浏览
关闭
jethornton 打开了这个问题 2017 年 2 月 14 日 · 2 条评论
关闭

半编译——文档#232

jethornton 打开了这个问题 2017 年 2 月 14 日 · 2 条评论

注释

半编译——文档 #232
合作者

当用 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”

/在解析 File() 时进行联网的实时 comp 的简单示例/
^ :

半编译——文档 #232
成员

附上受影响的合成文件。

根据查看原始提交的未标记文本,

 ~/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(_) {}

并且没有遇到任何问题halcompile --document

半编译——文档 #232
合作者作者

注释标记向后的错误示例。