IEEE 1800-2023 LRM 支持三重引号字符串,但没有一个模拟器能够编译(出现以下错误),任何线索都有助于更好地理解。
module top;
string foo;
initial begin
foo = """
This is one continuous string.
Single ' and double " can
be placed throughout, and
only a triple quote will end it.
""";
$display("%0s",foo);
end
endmodule
获取未终止字符串错误