M5 一个灵感源于GNU M4的宏处理器
M5!正在开发中 - M5在删除此警告之前不会工作!此处描述的功能细节可能会发生变化。M5是一个通用宏处理器,灵感源于GNU M4。以下通过一个简单的示例来说明如何使用M5。假设我们有一个文件“readme.m5”,其内容如下:
This text goes to the 'stdout' stream, directed to standard out by default. Regular text is passed on unmodified, given that no defined macros are mentioned.
hey name = Hey, name!
在这里,通过=
字符,定义了一个名为“hey”的宏,它接受一个参数。hey you
将被展开为Hey, you!
。
下载地址
用户评论