For the project, i will recieve data from the server(May be JSON/XML), and there are two individual client application which will process the data to do the similar things. One application will be a web based and the logic will write in JavaScipt, One is about C application. The logic for how to process the data is the same, Is there any way to write the common code using some method can be reused between them.
Asked
Active
Viewed 68 times
1 Answers
2
There exist Javascript implementations that can be called from C code. Using such an implementation, you could write a substantial portion of your code in Javascript, and interface it with C.
One such implementation is QtScript. Qt requires C++, but you can link C and C++ code together easily enough.

Greg Hewgill
- 951,095
- 183
- 1,149
- 1,285