Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Brainfuck 中进行包含句点('.')的评论?
我知道我基本上可以使用不是命令之一的每个字符,并且它被忽略,但我想在文件顶部的注释中放置一个版本号,其中包含一个句点。
您可以使用一个技巧:如果循环未运行且符合语法,则循环不会执行其中的内容。
[This is a comment.]+++++++++++++++++++++++++++++++.
事实上,如果你省略[],这将打印太多的 NUL 字节。你仍然不能使用括号;)
[]
这类似于 shell 构造:
if false; then this is a comment fi