示例#1
0
文件: Parser.cs 项目: zjloscar/Dynamo
 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);
 }