コード例 #1
0
        private Expression DoEvalPostfixExpr(List<Result> results)
        {
            var suffixes = new List<PostfixOperator>();

            for (int i = 1; i < results.Count; ++i)
            {
                suffixes.Add((PostfixOperator) results[i].Value);
            }

            var identifier = new Identifier(results[0].Text);
            return new PostfixExpression(identifier, suffixes.ToArray());
        }
コード例 #2
0
 public PostfixExpression(Identifier identifier, PostfixOperator[] suffixes)
 {
     m_identifier = identifier;
     m_suffixes = suffixes;
 }