The MNI Macro Processor MMP.

The MNI macro processor mmp is an embeddable, m4 compatible macro processor in Java.



Usage

The following code snippet shows how to use mmp:

String input = new String(
  "index(`abc', `b')\n" +
  "index(`abc', )\n" +
  "index(`abc', `d')\n"
);

StringWriter output = new StringWriter();

Engine engine = new Engine( new StringReader(input), new PrintWriter(output) );
engine.run();


For more information about macro processing with m4, and the MNI macro processor, see