Please review any and all PUBLIC repositories, groups and associate files. These allow anyone on the Internet to access without authentication. Repository and group owners are responsible for their content and permission settings. Go to your project(s), click on Settings > General and expand the "Visibility, project features, permissions" to change this setting.

Update indentation on documentation

parent bd0d15af
...@@ -20,24 +20,25 @@ There are example MP files in the Firebird_Pre_loaded_examples folder. To build ...@@ -20,24 +20,25 @@ There are example MP files in the Firebird_Pre_loaded_examples folder. To build
The event generator results will be saved in the output folder as a json file with the same name as the input MP filename. 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 ## 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 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 which matches the numbering in **Code/rall.sh**:
1. Compile the MP2-parser.rig 1. Compile the MP2-parser.rig
- Creates **MP2-parser.rsc** which is the compiled Rigal code - Creates **MP2-parser.rsc** which is the compiled Rigal code
- Creates **xd** script which will be used to cleanup the results - 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. 2. Run the interpreter on the MP2-parser.rsc with the inputs from the user MP file and scope.
- Creates **tree** file - 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. - 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 3. Compile the MP2-generator.rig
- Creates **MP2-generator.rsc** which is the compiled Rigal code - 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 4. Run the interpreter on the MP2-generator.rsc with the **tree** input from the previous interpreter
- Creates **{Your MP file}.cpp** - 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. - 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** 5. Run the C++ compiler on **{Your MP file}.cpp**
- Creates **{Your MP file}** compiled C++ - Creates **{Your MP file}** compiled C++
6. Run the compiled C++ program 6. Run the compiled C++ program
- Creates **{Your MP file}.json** - 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. - 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). For the detailed documentation about how the MP parser works, look at the [Documentation/MP_implementation_notes.pdf](Documentation/MP_implementation_notes.pdf).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment