GNU M4: expand bracketed text?

匆匆过客 提交于 2019-12-11 06:32:43

问题


If I run:

define(`[x]`,`y')
[x]
=>[x]

Nothing happens.. Is there a way to expand brackets in M4?


回答1:


If the name of the macro that you have defined contains non-alphanumeric characters the only way to expand its content is by using the defn() built-in macro:

define(`[x]',`y')
defn(`[x]')
=> y


来源:https://stackoverflow.com/questions/57205431/gnu-m4-expand-bracketed-text

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!