I am writing a web application (let’s call it App 1) that allows users to write simple instructions for a separate app (native, lets call it App 2) in a visual manner. Something similar to Google’s Blockly but dedicated to my applications.
The users will write the instructions (which can include conditions or loops) in App 1 and export a file that App 2 can read and interpret.
I would like to know if there is a file format or scheme that is commonly used for something like this or I have to create my own?
I searched online and didn’t find anything obvious (or didn’t know exactly what to search for)…
The implementation I’m currently exploring is exporting the instructions as an xml or json file, which is built in a way App 2 can read and break down and based on some key string values, find the relevant function in App 2 and execute it.
App 1 (which creates the instructions file) will be a web application and App 2 (which reads and executes the file) is a cpp application that will run locally in the computer.
Would this be an acceptable approach or is there another recommendation?
Thanks!
Bombora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.