剖析器家庭作業

請模仿以下網頁中的程式,做出可以剖析下列新語法的剖析器

新的運算式語法

E=T ([+-*/] T)
T=N | '(' E ')'

例如:
eparse 3
eparse 3+5
eparse (3+5)-8
eparse 3+((5+8)*3)

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License