コード例 #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 PMExpressionContext(PMAllocator engine, PMAllocationStep step)
		{
			this.engine = engine;
			this.step = step;
		}
コード例 #3
0
		private PMExpressionParser(PMAllocator engine, PMAllocationStep step, string text)
			: base(text)
		{
			Engine = engine;
			Step = step;
		}