C#写的表达式解析器,同时支持一元操作符和二元操作符,可自定义操作符,同时能设置表达式中的变量

上传者: hzc786166288 | 上传时间: 2022-11-30 10:01:22 | 文件大小: 88KB | 文件类型: RAR
C#写的表达式解析器,支持多种操作符 如加减乘除幂模,同时还支持正负、三角函数,随机值等函数,可以支持自己扩展操作符,同时能支持设置表达式中的变量.表达式使用的是逆波兰式(中缀表达式转换成的后缀表达式),非递归实现,执行效率非常高.

文件下载

资源详情

[{"title":"( 56 个子文件 88KB ) C#写的表达式解析器,同时支持一元操作符和二元操作符,可自定义操作符,同时能设置表达式中的变量","children":[{"title":"FormulaParser","children":[{"title":"frmFormulaParserTestDemo","children":[{"title":"frmMain.Designer.cs <span style='color:#111;'> 9.49KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 521B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"TempPE","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"build.force <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"TempPE","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"frmFormulaParserTestDemo.csproj <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"frmMain.resx <span style='color:#111;'> 6.05KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"frmFormulaParserTestDemo.vshost.exe <span style='color:#111;'> 22.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"frmFormulaParserTestDemo.vshost.exe <span style='color:#111;'> 22.16KB </span>","children":null,"spread":false},{"title":"frmFormulaParserTestDemo.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"frmMain.cs <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"FormulaParser","children":[{"title":"Operators","children":[{"title":"MinOperator.cs <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"CoshOperator.cs <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"CosOperator.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"PositiveOperator.cs <span style='color:#111;'> 982B </span>","children":null,"spread":false},{"title":"ModOperator.cs <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"DegreeOperator.cs <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"SubtractOperator.cs <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"PowOperator.cs <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"MultiplyOperator.cs <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"NegativeOperator.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"DivideOperator.cs <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"TanOperator.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"SinhOperator.cs <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"TanhOperator.cs <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"AddOperator.cs <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"MaxOperator.cs <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"RadianOperator.cs <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"RandomOperator.cs <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"SinOperator.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"SqrtOperator.cs <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"FormulaParser.csproj <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"TempPE","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.29KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 724B </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"TempPE","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":null,"spread":false},{"title":"Release","children":null,"spread":false}],"spread":true},{"title":"Bases","children":[{"title":"OperatorTable.cs <span style='color:#111;'> 10.06KB </span>","children":null,"spread":false},{"title":"OperandType.cs <span style='color:#111;'> 301B </span>","children":null,"spread":false},{"title":"Operand.cs <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"OperatorBase.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"OperationObject.cs <span style='color:#111;'> 614B </span>","children":null,"spread":false},{"title":"VariableDict.cs <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false},{"title":"UnaryOperatorBase.cs <span style='color:#111;'> 888B </span>","children":null,"spread":false},{"title":"IGetVariableValue.cs <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"OperationSteps.cs <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"ReversePolishNotation.cs <span style='color:#111;'> 28.49KB </span>","children":null,"spread":false},{"title":"OperatorPriorityConst.cs <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"BinaryOperatorBase.cs <span style='color:#111;'> 943B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".vs","children":[{"title":"FormulaParser","children":[{"title":"v14","children":[{"title":".suo <span style='color:#111;'> 144.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"FormulaParser.sln <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明