コード例 #1
0
		public static ExpressionNode Parse(PMAllocator engine, PMAllocationStep step, string formula)
		{
			if (formula.StartsWith("="))
			{
				formula = formula.Substring(1);
			}

			var expr = new PMExpressionParser(engine, step, formula);
			return expr.Parse();
		}
コード例 #2
0
        public static ExpressionNode Parse(IRateTable engine, string formula)
        {
            if (formula.StartsWith("="))
            {
                formula = formula.Substring(1);
            }

            var expr = new PMExpressionParser(engine, formula);

            return(expr.Parse());
        }
コード例 #3
0
        public static ExpressionNode Parse(PMAllocator engine, PMAllocationStep step, string formula)
        {
            if (formula.StartsWith("="))
            {
                formula = formula.Substring(1);
            }

            var expr = new PMExpressionParser(engine, step, formula);

            return(expr.Parse());
        }