Пример #1
0
 void unaryop(out UnaryOperator op)
 {
     op = UnaryOperator.None;
     if (la.kind == 47)
     {
         Get();
         op = UnaryOperator.Not;
     }
     else if (la.kind == 48)
     {
         Get();
         op = UnaryOperator.Negate;
     }
     else
     {
         SynErr(60);
     }
 }
Пример #2
0
 void unaryop(out UnaryOperator op)
 {
     op = UnaryOperator.None;
     if (la.kind == 47) {
     Get();
     op = UnaryOperator.Not;
     } else if (la.kind == 48) {
     Get();
     op = UnaryOperator.Negate;
     } else SynErr(60);
 }