Examples - adamb924/mortal-engine GitHub Wiki

There is a series of teaching examples at examples. The order of the examples is logical at the beginning, trending toward the incidental as you get to the end.

There is one test file for all of the examples: examples/all-examples.xml. These reference the model files, which are all separate: 00-Minimal.xml, 01-Filtered.xml, 02-Affixes.xml, etc.

You can run the examples with the command line utility like this:

met all-examples.xml output.txt

Most of the examples are used as examples as I explain things in the wiki documentation, but not all. (Sometimes it's more fun to write an example than to explain it.) It is intended that in the future all of the examples be explained in the documentation.