I require JavaScript validation in a script editor I am writing in C++.
I am aware that JSLint provides sources, is it possible to build JSLint as a C++ library that I can then use with their API开发者_如何学运维 without requiring the use of their exe.
If not, is there any other similar open source C++ libraries to validate JavaScript and provide error details?
Thanks.
Ref: http://www.javascriptlint.com/docs/running_from_your_windows_program.htm
You can take the same approach I used for jslint4java: embed a JavaScript interpreter along with a copy of JSLint.
精彩评论