使用 TinyScheme。
我正在将我的代码写入文件(在这里解决了 50%:如何在 tinyscheme 中写入文件?):
(with-output-to-file "biophilia.c"
(lambda ()
(write code)
))
; and segmentation fault comes here
但它用 "" qotes 和 \n\r 编写我的代码,因此它不会将其转换为换行符。
我需要编写看起来像的代码(display code)
在球拍文档中的示例中有 printf,但似乎 TinyScheme 实现没有 printf,也许我需要发现(添加它的代码)printf?