Python equation parser

后端 未结 3 685
情深已故
情深已故 2021-01-21 16:38

I\'m writing a program which needs a user input for an polynomial function of x. I\'m using Tkinter and python 2.5.

I have a parser method which so far takes the inputt

3条回答
  •  借酒劲吻你
    2021-01-21 16:48

    Look for "recursive descent parser". It's the canonical method for analysis of strings where some operator precedence is involved.

提交回复
热议问题