예제 #1
0
        public int Interpret(string expresion)
        {
            var parser = new Parser(expresion);
            AbstractSyntaxTreeNode node = parser.Expr();

            return(node.Accept(this));
        }
예제 #2
0
 public BinaryOperationNode(AbstractSyntaxTreeNode left, AbstractSyntaxTreeNode right, Token token) : base(token)
 {
     this.left  = left;
     this.right = right;
 }