Java 1.5: mathematical formula parser

后端 未结 5 993
野趣味
野趣味 2021-01-20 00:39

Hello i often develop JTableModels in which some cells must contain the result of apliying a certain simple mathematical formula. This formulas can have:

  • Opera
5条回答
  •  半阙折子戏
    2021-01-20 01:11

    Have you thought about the benefits of JSR-223 ? in a few words, this spec allows Java developers to integrate with great ease dynamic languages and their parsers. Using such parser, your need for defining a parser transforms into the need for defining an internal DSL, which resolves into creating simply a good API, and letting your user choose wether they prefer Javascript/Groovy/Scala/WTF syntax they happen to prefer.

提交回复
热议问题