Parser for the Mathematica syntax?

后端 未结 4 512
孤城傲影
孤城傲影 2021-02-02 01:05

Is there a built parser that I can use from C# that can parse mathematica expressions?

I know that I can use the Kernel itself to parse an expression, and use .NET/Link

4条回答
  •  时光说笑
    2021-02-02 01:51

    I wrote a Mathematica parser in 300 lines of OCaml code under contract for Wolfram Research and found it to be quite easy because the grammar is clearly documented in their literature and any ambiguities are easily found by playing with Mathematica itself.

提交回复
热议问题