Example #1
0
 public bool Match(TokenKindSymbol tokKind)
 {
     if (!CurrentIsKind(tokKind))
     {
         error(this.Current, this.Current.ToCode() + "不正确,应该是" + LexTokenSymbol.GetTextByKind(tokKind));
         return(false);
     }
     else
     {
         MoveNext();
         return(true);
     }
 }
Example #2
0
 public ExpUnary(ContextExp expContext, LexTokenSymbol token, Exp rightExp)
     : base(expContext)
 {
     OpToken  = token;
     RightExp = rightExp;
 }