The SSM Parser is a Python script that processes the JSON file with the state machine framework definition and generates the source files for the state machines.
python parser.py [--input /path/to/file/<filename>.json] [--src /path/to/directory/<output src directory>] [--include /path/to/directory/<output src directory>]
--input [path to JSON file] Description: The JSON file contains the SSM framework for the application Example: --input ../samples/demo1/sm1.json --src [Relative path to output source directory] Description: The parser generates the necessary C++ implementation files based on the JSON file and places the code in directory mentioned by this argument Example: --src ./src/sm1 --include [Relative path to output include directory] Description: The parser generates the necessary C++ header files based on the JSON file and places the code in directory mentioned by this argument Example: --inc ./include/sm1
To run SSM's parser with sm1.json for example:
python parser.py --input ../samples/demo1/sm1.json --src ../samples/demo1/src/sm1 --include ../samples/demo1/include/sm1
('parser.py output src directory \n', '../samples/demo1/src/sm1') ('parser.py output include directory \n', '../samples/demo1/include/sm1')