I published a new algorithm for parsing a mathematical expression in C++ in the May and July 2015 issues of CVu Journal (see items 1 and 2 in "References"). It took two articles because one astute reader, Silas S. Brown, found a bug in the first algorithm implementation, so I had to make some modifications to it. Thanks to that reader, the algorithm became more mature. I've also fixed a few smaller bugs since then. Now I'm going to provide an implementation of the corrected algorithm in C#.
展开▼
机译:我在2015年5月和7月的CVu Journal中发布了一种新的算法,用于解析C ++中的数学表达式(请参见“参考”中的第1和2项)。花费了两篇文章,因为一个精明的读者Silas S. Brown在第一个算法实现中发现了一个错误,因此我不得不对其进行一些修改。多亏了该读者,该算法才变得更加成熟。从那时起,我还修复了一些较小的错误。现在,我将在C#中提供更正算法的实现。
展开▼