The output will be saved to Example01_simple_message_flow.json
\ No newline at end of file
The event generator results will be saved in the output folder as a json file with the same name as the input MP filename.
## Overview
The Trace Generator uses Rigal to convert the MP file rules into C++ code which is then executed to generate the JSON output. The "rc" command runs the Rigal compiler and generates the .rsc tree. The "ic" command runs the Rigal interpreter which converts the tree into C code. Here is the step by step process
1. Compile the MP2-parser.rig
- Creates **MP2-parser.rsc** which is the compiled Rigal code
- Creates **xd** script which will be used to cleanup the results
2. Run the interpreter on the MP2-parser.rsc with the inputs from the user MP file and scope.
- Creates **tree** file
- Output on this interpreter is redirected by the script to **temp.out**. So any program output and errors will be found there.
3. Compile the MP2-generator.rig
- Creates **MP2-generator.rsc** which is the compiled Rigal code
4. Run the interpreter on the MP2-generator.rsc with the **tree** input from the previous interpreter
- Creates **{Your MP file}.cpp**
- Output on this interpreter is redirected by the script to **temp2.out**. So any program output and errors will be found there.
5. Run the C++ compiler on **{Your MP file}.cpp**
- Creates **{Your MP file}** compiled C++
6. Run the compiled C++ program
- Creates **{Your MP file}.json**
- Output on this program is redirected by the script to **{Your MP file}.txt**. So any MP output and errors will be found there.
For the detailed documentation about how the MP parser works, look at the [Documentation/MP_implementation_notes.pdf](Documentation/MP_implementation_notes.pdf).
## Documentation
*[User Documentation on Wiki](https://wiki.nps.edu/display/MP/Monterey+Phoenix+Home)
*[Documentation/MP_implementation_notes.pdf](Documentation/MP_implementation_notes.pdf) - Detailed overview of how the original script for running the Trace Generator works
*[Documentation/MP-syntax-v4.pdf](Documentation/MP-syntax-v4.pdf) - MP Language Manual