R4d is a text oriented macro prosessor made with rust.
R4d is in very early stage, so there might be lots of undetected bugs.
Definition is also a macro. However it requires specifid form not like other macros
// Define with simple form
// First argument is macro name
// Second argument is whitespace separated macro's argument list
// Third argument is body to be substituted
// Body can express argument usage with macro usage
$define(name,arg1 arg2, $arg1() $arg2())
Prefix is a dollar sign($)
$define(macro_name,a1 a2, $a1() $a2())
$macro_name(arg1, arg2)
Macro can be invoked anywhere
My name is $macro_name(Simon, Creek).
converts to
My name is Simon Creek.
R4d aims to be a modern m4 alternative, which means