Javascript parser for simple expression

后端 未结 6 2244
再見小時候
再見小時候 2020-12-05 03:57

I would like to find a javascript parser that can handle and evaluate simple expressions. The parser should be able to evaluate the regular mathematical expressions, and sup

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 04:03

    Narcissus implements a proper JS parser in JS: http://mxr.mozilla.org/mozilla/source/js/narcissus/jsparse.js. Written by Brendan Eich (the JS creator) too!

提交回复
热议问题