开发者

Can JSLint be built as a C++ library

开发者 https://www.devze.com 2023-02-02 07:19 出处:网络
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开发

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消