Esempio n. 1
0
        public Node ExpressionUnary()
        {
            if (firstOfOperatorUnary.Contains(CurrentToken))
            {
                var result = new ExpressionUnary();
                var opUL   = new OpUnaryList();

                while (firstOfOperatorUnary.Contains(CurrentToken))
                {
                    opUL.Add(OpUnary());
                }
                result.Add(opUL);

                var expr = ExpressionPrimary();
                result.Add(expr);
                return(result);
            }
            return(ExpressionPrimary());
        }
 public string Visit(OpUnaryList node)
 {
     return(VisitChildren(node));
 }
 public void Visit(OpUnaryList node)
 {
 }